remove unnecessary GFPGAN_PACKAGE (we install GFPGAN from the requirements file)

This commit is contained in:
AUTOMATIC1111 2023-08-10 17:22:08 +03:00
parent 4549f2a9cc
commit e0906096c5
2 changed files with 0 additions and 7 deletions

View File

@ -305,7 +305,6 @@ def prepare_environment():
requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt") requirements_file = os.environ.get('REQS_FILE', "requirements_versions.txt")
xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.20') xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.20')
gfpgan_package = os.environ.get('GFPGAN_PACKAGE', "https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip")
clip_package = os.environ.get('CLIP_PACKAGE', "https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip") clip_package = os.environ.get('CLIP_PACKAGE', "https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip")
openclip_package = os.environ.get('OPENCLIP_PACKAGE', "https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip") openclip_package = os.environ.get('OPENCLIP_PACKAGE', "https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip")
@ -352,11 +351,6 @@ def prepare_environment():
) )
startup_timer.record("torch GPU test") startup_timer.record("torch GPU test")
if not is_installed("gfpgan"):
run_pip(f"install {gfpgan_package}", "gfpgan")
startup_timer.record("install gfpgan")
if not is_installed("clip"): if not is_installed("clip"):
run_pip(f"install {clip_package}", "clip") run_pip(f"install {clip_package}", "clip")
startup_timer.record("install clip") startup_timer.record("install clip")

View File

@ -23,7 +23,6 @@ environment_whitelist = {
"TORCH_COMMAND", "TORCH_COMMAND",
"REQS_FILE", "REQS_FILE",
"XFORMERS_PACKAGE", "XFORMERS_PACKAGE",
"GFPGAN_PACKAGE",
"CLIP_PACKAGE", "CLIP_PACKAGE",
"OPENCLIP_PACKAGE", "OPENCLIP_PACKAGE",
"STABLE_DIFFUSION_REPO", "STABLE_DIFFUSION_REPO",