Skip to content

Commit

Permalink
restore albumentations version
Browse files Browse the repository at this point in the history
in albumentations==1.4.4
- pydantic required: >=2.6.4
webui 1.9 with gradio==3.41.2 requires
- pydantic required: >=1.7.4,<3.0.0,!=2.0.1,!=2.0.0,!=1.8.1,!=1.8
  • Loading branch information
w-e-w committed Apr 18, 2024
1 parent a6ce04d commit acf3de6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,26 @@ def try_install_insight_face():
):
try:
current_pydantic_version = get_installed_version('pydantic')
current_albumentations_version = get_installed_version('albumentations')

launch.run_pip(
f"install {wheel_url}",
"sd-webui-controlnet requirement: insightface",
)
post_install_pydantic_version = get_installed_version('pydantic')
post_install_albumentations_version = get_installed_version('albumentations')
if current_albumentations_version and post_install_albumentations_version and current_albumentations_version != post_install_albumentations_version:
launch.run_pip(
f"install -U albumentations=={current_albumentations_version}",
f"restore albumentations version to {current_albumentations_version}",
)

if current_pydantic_version and post_install_pydantic_version and current_pydantic_version != post_install_pydantic_version:
launch.run_pip(
f"install -U pydantic=={current_pydantic_version}",
f"restore pydantic version to {current_pydantic_version}",
)
# albumentations==1.4.3
except Exception as e:
print(e)
print(
Expand Down

0 comments on commit acf3de6

Please sign in to comment.