mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2026-01-23 10:44:24 +08:00
Update nodes.py
This commit is contained in:
parent
251d6599c0
commit
1e15c5b901
4
nodes.py
4
nodes.py
@ -482,7 +482,7 @@ class CogVideoXFunSampler:
|
|||||||
pipe = pipeline["pipe"]
|
pipe = pipeline["pipe"]
|
||||||
dtype = pipeline["dtype"]
|
dtype = pipeline["dtype"]
|
||||||
|
|
||||||
pipe.enable_model_cpu_offload()
|
pipe.enable_model_cpu_offload(device=device)
|
||||||
|
|
||||||
mm.soft_empty_cache()
|
mm.soft_empty_cache()
|
||||||
|
|
||||||
@ -594,7 +594,7 @@ class CogVideoXFunVid2VidSampler:
|
|||||||
pipe = pipeline["pipe"]
|
pipe = pipeline["pipe"]
|
||||||
dtype = pipeline["dtype"]
|
dtype = pipeline["dtype"]
|
||||||
|
|
||||||
pipe.enable_model_cpu_offload()
|
pipe.enable_model_cpu_offload(device=device)
|
||||||
|
|
||||||
mm.soft_empty_cache()
|
mm.soft_empty_cache()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user