mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-09 21:04:23 +08:00
check that Tora trajectory length matches
This commit is contained in:
parent
133b42eb4f
commit
d314ddbe05
@ -894,6 +894,10 @@ class CogVideoX_Fun_Pipeline_Inpaint(VideoSysPipeline):
|
|||||||
video_flow_features = tora["video_flow_features"].repeat(1, 2, 1, 1, 1).contiguous()
|
video_flow_features = tora["video_flow_features"].repeat(1, 2, 1, 1, 1).contiguous()
|
||||||
|
|
||||||
if tora is not None:
|
if tora is not None:
|
||||||
|
trajectory_length = tora["video_flow_features"].shape[1]
|
||||||
|
logger.info(f"Tora trajectory length: {trajectory_length}")
|
||||||
|
if trajectory_length != latents.shape[1]:
|
||||||
|
raise ValueError(f"Tora trajectory length {trajectory_length} does not match inpaint_latents count {latents.shape[2]}")
|
||||||
for module in self.transformer.fuser_list:
|
for module in self.transformer.fuser_list:
|
||||||
for param in module.parameters():
|
for param in module.parameters():
|
||||||
param.data = param.data.to(device)
|
param.data = param.data.to(device)
|
||||||
|
|||||||
1
nodes.py
1
nodes.py
@ -916,6 +916,7 @@ class CogVideoXFunSampler:
|
|||||||
assert "fun" in base_path.lower(), "'Unfun' models not supported in 'CogVideoXFunSampler', use the 'CogVideoSampler'"
|
assert "fun" in base_path.lower(), "'Unfun' models not supported in 'CogVideoXFunSampler', use the 'CogVideoSampler'"
|
||||||
assert "pose" not in base_path.lower(), "'Pose' models not supported in 'CogVideoXFunSampler', use the 'CogVideoXFunControlSampler'"
|
assert "pose" not in base_path.lower(), "'Pose' models not supported in 'CogVideoXFunSampler', use the 'CogVideoXFunControlSampler'"
|
||||||
|
|
||||||
|
|
||||||
if not pipeline["cpu_offloading"]:
|
if not pipeline["cpu_offloading"]:
|
||||||
pipe.enable_model_cpu_offload(device=device)
|
pipe.enable_model_cpu_offload(device=device)
|
||||||
|
|
||||||
|
|||||||
@ -613,6 +613,10 @@ class CogVideoXPipeline(VideoSysPipeline):
|
|||||||
control_weights= None
|
control_weights= None
|
||||||
|
|
||||||
if tora is not None:
|
if tora is not None:
|
||||||
|
trajectory_length = tora["video_flow_features"].shape[1]
|
||||||
|
logger.info(f"Tora trajectory length: {trajectory_length}")
|
||||||
|
if trajectory_length != latents.shape[1]:
|
||||||
|
raise ValueError(f"Tora trajectory length {trajectory_length} does not match inpaint_latents count {latents.shape[2]}")
|
||||||
for module in self.transformer.fuser_list:
|
for module in self.transformer.fuser_list:
|
||||||
for param in module.parameters():
|
for param in module.parameters():
|
||||||
param.data = param.data.to(device)
|
param.data = param.data.to(device)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user