mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
fix for broken codeformer in PR
This commit is contained in:
@@ -54,7 +54,7 @@ def setup_model(dirname):
|
|||||||
if self.net is not None and self.face_helper is not None:
|
if self.net is not None and self.face_helper is not None:
|
||||||
self.net.to(devices.device_codeformer)
|
self.net.to(devices.device_codeformer)
|
||||||
return self.net, self.face_helper
|
return self.net, self.face_helper
|
||||||
model_paths = modelloader.load_models(model_path, model_url, self.cmd_dir)
|
model_paths = modelloader.load_models(model_path, model_url, self.cmd_dir, download_name='codeformer-v0.1.0.pth')
|
||||||
if len(model_paths) != 0:
|
if len(model_paths) != 0:
|
||||||
ckpt_path = model_paths[0]
|
ckpt_path = model_paths[0]
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user