Skip to content

Commit e525673

Browse files
Fix issue. (#10527)
1 parent 3fa7a5c commit e525673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/sd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ def load_diffusion_model_state_dict(sd, model_options={}, metadata=None):
13301330
else:
13311331
unet_dtype = dtype
13321332

1333-
if hasattr(model_config, "layer_quant_config"):
1333+
if model_config.layer_quant_config is not None:
13341334
manual_cast_dtype = model_management.unet_manual_cast(None, load_device, model_config.supported_inference_dtypes)
13351335
else:
13361336
manual_cast_dtype = model_management.unet_manual_cast(unet_dtype, load_device, model_config.supported_inference_dtypes)

0 commit comments

Comments
 (0)