Return proper error if diffusion model not detected properly. (#8272)

This commit is contained in:
comfyanonymous 2025-05-25 02:28:11 -07:00 committed by GitHub
parent ad3bd8aa49
commit a0651359d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = []