From 6632365e16cb7bde5c0f72205144286801f1412e Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 11 Oct 2024 20:51:19 -0400 Subject: [PATCH] model_options consistency between functions. weight_dtype -> dtype --- comfy/sd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/sd.py b/comfy/sd.py index 97d6b2e95c1..67b4ff0cfbe 100644 --- a/comfy/sd.py +++ b/comfy/sd.py @@ -584,7 +584,7 @@ def load_state_dict_guess_config(sd, output_vae=True, output_clip=True, output_c unet_weight_dtype.append(weight_dtype) model_config.custom_operations = model_options.get("custom_operations", None) - unet_dtype = model_options.get("weight_dtype", None) + unet_dtype = model_options.get("dtype", model_options.get("weight_dtype", None)) if unet_dtype is None: unet_dtype = model_management.unet_dtype(model_params=parameters, supported_dtypes=unet_weight_dtype)