Fix some fp8 scaled checkpoints no longer working.

This commit is contained in:
comfyanonymous 2026-03-31 11:21:49 -04:00 committed by GitHub
parent 076639fed9
commit f85a7efbce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1745,6 +1745,8 @@ def load_diffusion_model_state_dict(sd, model_options={}, metadata=None, disable
temp_sd = comfy.utils.state_dict_prefix_replace(sd, {diffusion_model_prefix: ""}, filter_keys=True)
if len(temp_sd) > 0:
sd = temp_sd
if custom_operations is None:
sd, metadata = comfy.utils.convert_old_quants(sd, "", metadata=metadata)
parameters = comfy.utils.calculate_parameters(sd)
weight_dtype = comfy.utils.weight_dtype(sd)