Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diffusers
einops
huggingface_hub>=0.25.2
ninja~=1.11.1.4
transformers[timm]>=4.45.0
huggingface_hub
ninja
transformers[timm]
6 changes: 3 additions & 3 deletions tricks/modules/ltx_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from comfy.ldm.lightricks.model import (
BasicTransformerBlock,
LTXVModel,
apply_rotary_emb,
apply_rope1,
precompute_freqs_cis,
)
from comfy.ldm.lightricks.symmetric_patchifier import latent_to_pixel_coords
Expand Down Expand Up @@ -57,8 +57,8 @@ def forward(self, x, context=None, mask=None, pe=None, transformer_options={}):
k = self.k_norm(k)

if pe is not None:
q = apply_rotary_emb(q, pe)
k = apply_rotary_emb(k, pe)
q = apply_rope1(q.unsqueeze(1), pe).squeeze(1)
k = apply_rope1(k.unsqueeze(1), pe).squeeze(1)

feta_score = None
if (
Expand Down