From 932ee3dc59f3950c79f5225ef4badf6348ce9464 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 9 May 2026 13:47:42 +0200 Subject: [PATCH] Fix ImportError: precompute_freqs_cis is now _precompute_freqs_cis on LTXBaseModel The standalone function precompute_freqs_cis was refactored to a private method _precompute_freqs_cis on the LTXBaseModel class in the ComfyUI core. Update the import and call site in LTXVModelModified.forward() to use self._precompute_freqs_cis() instead. --- tricks/modules/ltx_model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tricks/modules/ltx_model.py b/tricks/modules/ltx_model.py index 59b62d9..05d337f 100644 --- a/tricks/modules/ltx_model.py +++ b/tricks/modules/ltx_model.py @@ -7,7 +7,6 @@ BasicTransformerBlock, LTXVModel, apply_rotary_emb, - precompute_freqs_cis, ) from comfy.ldm.lightricks.symmetric_patchifier import latent_to_pixel_coords from torch import nn @@ -167,7 +166,7 @@ def forward( (attention_mask.shape[0], 1, -1, attention_mask.shape[-1]) ) * torch.finfo(x.dtype).max - pe = precompute_freqs_cis( + pe = self._precompute_freqs_cis( fractional_coords, dim=self.inner_dim, out_dtype=x.dtype )