|
|
@ -393,9 +393,9 @@ class ModelPatcher:
|
|
|
|
if m.comfy_cast_weights:
|
|
|
|
if m.comfy_cast_weights:
|
|
|
|
wipe_lowvram_weight(m)
|
|
|
|
wipe_lowvram_weight(m)
|
|
|
|
|
|
|
|
|
|
|
|
param = list(m.parameters())
|
|
|
|
if hasattr(m, "weight"):
|
|
|
|
if len(param) > 0:
|
|
|
|
|
|
|
|
mem_counter += comfy.model_management.module_size(m)
|
|
|
|
mem_counter += comfy.model_management.module_size(m)
|
|
|
|
|
|
|
|
param = list(m.parameters())
|
|
|
|
weight = param[0]
|
|
|
|
weight = param[0]
|
|
|
|
if weight.device == device_to:
|
|
|
|
if weight.device == device_to:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|