aboutsummaryrefslogtreecommitdiffstats
path: root/modules/gfpgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-27 06:20:49 +0000
committerGitHub <noreply@github.com>2023-06-27 06:20:49 +0000
commit3cd4fd51ef916aba8b978490569a5da82795a839 (patch)
treecdae174b0c146f11bbda49f52bbcb389cc2f9893 /modules/gfpgan_model.py
parentd4f9250c5aef0fd3afb6ed8a6bc3515fa2fcf635 (diff)
parent2667f47ffbf7c641a7e77abbdddf5e81bf144199 (diff)
downloadstable-diffusion-webui-gfx803-3cd4fd51ef916aba8b978490569a5da82795a839.tar.gz
stable-diffusion-webui-gfx803-3cd4fd51ef916aba8b978490569a5da82795a839.tar.bz2
stable-diffusion-webui-gfx803-3cd4fd51ef916aba8b978490569a5da82795a839.zip
Merge pull request #10823 from akx/model-loady
Upscaler model loading cleanup
Diffstat (limited to 'modules/gfpgan_model.py')
-rw-r--r--modules/gfpgan_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gfpgan_model.py b/modules/gfpgan_model.py
index 6ecd295c..8e0f13bd 100644
--- a/modules/gfpgan_model.py
+++ b/modules/gfpgan_model.py
@@ -25,7 +25,7 @@ def gfpgann():
return None
models = modelloader.load_models(model_path, model_url, user_path, ext_filter="GFPGAN")
- if len(models) == 1 and "http" in models[0]:
+ if len(models) == 1 and models[0].startswith("http"):
model_file = models[0]
elif len(models) != 0:
latest_file = max(models, key=os.path.getctime)