Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

model_options consistency between functions.

comfyanonymous6632365e16cb
diff --git a/comfy/sd.py b/comfy/sd.py
index 97d6b2e95..67b4ff0cf 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)