mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -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
|
|
@ -121,7 +121,7 @@ class UpscalerScuNET(modules.upscaler.Upscaler):
|
|||
filename = modelloader.load_file_from_url(self.model_url, model_dir=self.model_download_path, file_name=f"{self.name}.pth")
|
||||
else:
|
||||
filename = path
|
||||
return modelloader.load_spandrel_model(filename, device=device)
|
||||
return modelloader.load_spandrel_model(filename, device=device, expected_architecture='SCUNet')
|
||||
|
||||
|
||||
def on_ui_settings():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue