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