Fix: shape-safe TeaCache residuals + auto-reset + updated LTXBaseModel for ComfyUI latest releases#182
Open
elsung wants to merge 1 commit intowelltop-cn:mainfrom
Open
Fix: shape-safe TeaCache residuals + auto-reset + updated LTXBaseModel for ComfyUI latest releases#182elsung wants to merge 1 commit intowelltop-cn:mainfrom
elsung wants to merge 1 commit intowelltop-cn:mainfrom
Conversation
…l for latest ComfyUI
|
It's broken again, because of more changes to support LTXV-2. The best fix for now is probably to disable LTXV support entirely. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This update fixes a common TeaCache crash and makes the node work with the newest ComfyUI changes.
✅ What was broken
TeaCache sometimes crashed with WAN models because it tried to reuse old cached tensors even when the model shape changed.
This caused errors like:
Size of tensor a must match tensor b
✅ What this PR fixes
Stops crashes: TeaCache now checks the tensor shape before using cached data.
Auto-reset: Cache resets itself when shape changes or at step 0.
Safe residuals: Only adds cached data if the size matches.
More stable video runs: No more random failures when FPS or resolution changes.
LTXBaseModel updated (line 12 + line ~736): Adjusted imports and calls so TeaCache works with the latest ComfyUI updates.
✅ Why this helps
TeaCache stays fast but doesn’t break anymore, even with dynamic settings like different sizes, frames, or batch changes.