Return proper error if diffusion model not detected properly.

This commit is contained in:
comfyanonymous 2025-05-25 03:58:41 -04:00
parent ad3bd8aa49
commit c67b06bdd6

View File

@ -620,6 +620,9 @@ def convert_config(unet_config):
def unet_config_from_diffusers_unet(state_dict, dtype=None): def unet_config_from_diffusers_unet(state_dict, dtype=None):
if "conv_in.weight" not in state_dict:
return None
match = {} match = {}
transformer_depth = [] transformer_depth = []