mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 22:53:25 +03:00
make the detection for -v models less broad
This commit is contained in:
parent
41975c375c
commit
4c52dfe4ac
@ -31,7 +31,7 @@ def guess_model_config_from_state_dict(sd, filename):
|
||||
if sd2_cond_proj_weight is not None and sd2_cond_proj_weight.shape[1] == 1024:
|
||||
if diffusion_model_input.shape[1] == 9:
|
||||
return config_sd2_inpainting
|
||||
elif re.search(re_parametrization_v, fn) or "768" in fn:
|
||||
elif re.search(re_parametrization_v, fn):
|
||||
return config_sd2v
|
||||
else:
|
||||
return config_sd2
|
||||
|
Loading…
Reference in New Issue
Block a user