Skip to content

Commit

Permalink
albumentations==1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Apr 18, 2024
1 parent acf3de6 commit 81ca956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,10 @@ def try_install_insight_face():
and python_version.minor == 10
):
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
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ mediapipe
opencv-python>=4.8.0
svglib
addict
yapf
yapf
albumentations==1.4.3

0 comments on commit 81ca956

Please sign in to comment.