mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Fix regression.
This commit is contained in:
parent
e172564eea
commit
6678d5cf65
@ -396,9 +396,10 @@ 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())
|
||||||
weight = param[0]
|
if len(param) > 0:
|
||||||
if weight.device == device_to:
|
weight = param[0]
|
||||||
continue
|
if weight.device == device_to:
|
||||||
|
continue
|
||||||
|
|
||||||
self.patch_weight_to_device(weight_key) #TODO: speed this up without OOM
|
self.patch_weight_to_device(weight_key) #TODO: speed this up without OOM
|
||||||
self.patch_weight_to_device(bias_key)
|
self.patch_weight_to_device(bias_key)
|
||||||
|
Loading…
Reference in New Issue
Block a user