mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-08 20:34:23 +08:00
Update nodes.py
This commit is contained in:
parent
c17750ea0a
commit
dec1f8ba0f
9
nodes.py
9
nodes.py
@ -1104,6 +1104,9 @@ class ToraEncodeTrajectory:
|
||||
"start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01}),
|
||||
"end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}),
|
||||
},
|
||||
"optional": {
|
||||
"enable_tiling": ("BOOL", {"default": False}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("TORAFEATURES", "IMAGE", )
|
||||
@ -1111,7 +1114,7 @@ class ToraEncodeTrajectory:
|
||||
FUNCTION = "encode"
|
||||
CATEGORY = "CogVideoWrapper"
|
||||
|
||||
def encode(self, pipeline, width, height, num_frames, coordinates, strength, start_percent, end_percent, tora_model):
|
||||
def encode(self, pipeline, width, height, num_frames, coordinates, strength, start_percent, end_percent, tora_model, enable_tiling=False):
|
||||
check_diffusers_version()
|
||||
device = mm.get_torch_device()
|
||||
offload_device = mm.unet_offload_device()
|
||||
@ -1124,6 +1127,10 @@ class ToraEncodeTrajectory:
|
||||
except:
|
||||
pass
|
||||
|
||||
if enable_tiling:
|
||||
from .mz_enable_vae_encode_tiling import enable_vae_encode_tiling
|
||||
enable_vae_encode_tiling(vae)
|
||||
|
||||
if len(coordinates) < 10:
|
||||
coords_list = []
|
||||
for coords in coordinates:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user