Skip to content
代码片段 群组 项目
提交 a80bc822 编辑于 作者: comfyanonymous's avatar comfyanonymous
浏览文件

Partially revert last commit.

上级 872780d2
No related branches found
No related tags found
无相关合并请求
......@@ -194,6 +194,11 @@ class LTXVAddGuide:
frame_idx, latent_idx = self.get_latent_index(positive, latent_length, frame_idx, scale_factors)
assert latent_idx + t.shape[2] <= latent_length, "Conditioning frames exceed the length of the latent sequence."
if frame_idx == 0:
latent_image, noise_mask = self.replace_latent_frames(latent_image, noise_mask, t, latent_idx, strength)
return (positive, negative, {"samples": latent_image, "noise_mask": noise_mask},)
num_prefix_frames = min(self._num_prefix_frames, t.shape[2])
positive, negative, latent_image, noise_mask = self.append_keyframe(
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册