Skip to content

Commit

Permalink
Revert "Partially revert last commit."
Browse files Browse the repository at this point in the history
This reverts commit a80bc82.
  • Loading branch information
comfyanonymous committed Mar 5, 2025
1 parent a80bc82 commit 76739c2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions comfy_extras/nodes_lt.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ def generate(self, positive, negative, vae, latent, image, frame_idx, strength):
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(
Expand Down

0 comments on commit 76739c2

Please sign in to comment.