diff options
author | Tpinion <Tpinion> | 2023-02-23 16:42:29 +0000 |
---|---|---|
committer | Tpinion <Tpinion> | 2023-02-23 16:42:29 +0000 |
commit | ac4c7f05cd38dfa99cf64f7ddb9b1656e70a13c5 (patch) | |
tree | 7d17bc2593f27651cb6558e5058315e557277488 | |
parent | 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff) | |
download | stable-diffusion-webui-gfx803-ac4c7f05cd38dfa99cf64f7ddb9b1656e70a13c5.tar.gz stable-diffusion-webui-gfx803-ac4c7f05cd38dfa99cf64f7ddb9b1656e70a13c5.tar.bz2 stable-diffusion-webui-gfx803-ac4c7f05cd38dfa99cf64f7ddb9b1656e70a13c5.zip |
Filter out temporary files that will be generated if the download fails.
-rw-r--r-- | modules/codeformer_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codeformer_model.py b/modules/codeformer_model.py index 01fb7bd8..8d84bbc9 100644 --- a/modules/codeformer_model.py +++ b/modules/codeformer_model.py @@ -55,7 +55,7 @@ def setup_model(dirname): if self.net is not None and self.face_helper is not None:
self.net.to(devices.device_codeformer)
return self.net, self.face_helper
- model_paths = modelloader.load_models(model_path, model_url, self.cmd_dir, download_name='codeformer-v0.1.0.pth')
+ model_paths = modelloader.load_models(model_path, model_url, self.cmd_dir, download_name='codeformer-v0.1.0.pth', ext_filter=['.pth'])
if len(model_paths) != 0:
ckpt_path = model_paths[0]
else:
|