mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-07 11:00:43 -08:00
Verify architecture for loaded Spandrel models
This commit is contained in:
parent
c756133541
commit
4ad0c0c0a8
8 changed files with 22 additions and 5 deletions
|
|
@ -37,6 +37,7 @@ class FaceRestorerCodeFormer(face_restoration_utils.CommonFaceRestoration):
|
|||
return modelloader.load_spandrel_model(
|
||||
model_path,
|
||||
device=devices.device_codeformer,
|
||||
expected_architecture='CodeFormer',
|
||||
).model
|
||||
raise ValueError("No codeformer model found")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue