mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-06-06 07:33:32 +08:00
Fix regression.
This commit is contained in:
parent
e172564eea
commit
6678d5cf65
@ -396,6 +396,7 @@ class ModelPatcher:
|
|||||||
if hasattr(m, "weight"):
|
if hasattr(m, "weight"):
|
||||||
mem_counter += comfy.model_management.module_size(m)
|
mem_counter += comfy.model_management.module_size(m)
|
||||||
param = list(m.parameters())
|
param = list(m.parameters())
|
||||||
|
if len(param) > 0:
|
||||||
weight = param[0]
|
weight = param[0]
|
||||||
if weight.device == device_to:
|
if weight.device == device_to:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user