mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-11 23:14:25 +08:00
Fix issue. (#10527)
This commit is contained in:
parent
3fa7a5c04a
commit
e525673f72
@ -1330,7 +1330,7 @@ def load_diffusion_model_state_dict(sd, model_options={}, metadata=None):
|
|||||||
else:
|
else:
|
||||||
unet_dtype = dtype
|
unet_dtype = dtype
|
||||||
|
|
||||||
if hasattr(model_config, "layer_quant_config"):
|
if model_config.layer_quant_config is not None:
|
||||||
manual_cast_dtype = model_management.unet_manual_cast(None, load_device, model_config.supported_inference_dtypes)
|
manual_cast_dtype = model_management.unet_manual_cast(None, load_device, model_config.supported_inference_dtypes)
|
||||||
else:
|
else:
|
||||||
manual_cast_dtype = model_management.unet_manual_cast(unet_dtype, load_device, model_config.supported_inference_dtypes)
|
manual_cast_dtype = model_management.unet_manual_cast(unet_dtype, load_device, model_config.supported_inference_dtypes)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user