mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 02:30:02 +08:00
Return proper error if diffusion model not detected properly. (#8272)
This commit is contained in:
parent
552b19e77b
commit
43a117123e
@ -620,6 +620,9 @@ def convert_config(unet_config):
|
||||
|
||||
|
||||
def unet_config_from_diffusers_unet(state_dict, dtype=None):
|
||||
if "conv_in.weight" not in state_dict:
|
||||
return None
|
||||
|
||||
match = {}
|
||||
transformer_depth = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user