mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2026-07-20 10:47:05 +08:00
Don't overwrite sequential cpu offloading in the fun sampler
This commit is contained in:
parent
73fa4be48f
commit
006507a9fe
1
nodes.py
1
nodes.py
@ -737,6 +737,7 @@ class CogVideoXFunSampler:
|
|||||||
base_path = pipeline["base_path"]
|
base_path = pipeline["base_path"]
|
||||||
assert "Fun" in base_path, "'Unfun' models not supported in 'CogVideoXFunSampler', use the 'CogVideoSampler'"
|
assert "Fun" in base_path, "'Unfun' models not supported in 'CogVideoXFunSampler', use the 'CogVideoSampler'"
|
||||||
|
|
||||||
|
if not pipeline["cpu_offloading"]:
|
||||||
pipe.enable_model_cpu_offload(device=device)
|
pipe.enable_model_cpu_offload(device=device)
|
||||||
|
|
||||||
mm.soft_empty_cache()
|
mm.soft_empty_cache()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user