mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-05 07:29:57 +00:00
better print
This commit is contained in:
@@ -177,7 +177,11 @@ def split_state_dict(sd, sd_vae=None):
|
||||
|
||||
@torch.no_grad()
|
||||
def forge_loader(sd, sd_vae=None):
|
||||
state_dicts, estimated_config = split_state_dict(sd, sd_vae=sd_vae)
|
||||
try:
|
||||
state_dicts, estimated_config = split_state_dict(sd, sd_vae=sd_vae)
|
||||
except:
|
||||
raise ValueError('Failed to recognize model type!')
|
||||
|
||||
repo_name = estimated_config.huggingface_repo
|
||||
|
||||
local_path = os.path.join(dir_path, 'huggingface', repo_name)
|
||||
|
||||
Reference in New Issue
Block a user