WHEN will the kornia.geometry.transform.pyramid import issue be fixed?
Kornia devs clearly stated that this ia a downsteam issue and has to be fixed in LTX Video. Why ist this still being ignored? I am fed of fixing this each time manually after an LTX update.
https://github.com/kornia/kornia/issues/3986#issuecomment-5424466053 Copy and paste from above link:
Closing — this is a real break we caused, but the fix belongs downstream, not in kornia.
pad was never public API in kornia.geometry.transform.pyramid: never in __all__, never documented, just torch.nn.functional.pad leaking out of the module because of a from kornia.core import ..., pad, ... import. When the module switched to calling F.pad(...) directly for 0.8.3, that binding disappeared with it. Restoring it would freeze an accidental implementation detail into our API surface permanently, so I've closed https://github.com/kornia/kornia/pull/4003 which proposed exactly that.
ComfyUI-LTXVideo already has five open PRs with the one-line fix (https://github.com/Lightricks/ComfyUI-LTXVideo/pull/498, https://github.com/Lightricks/ComfyUI-LTXVideo/pull/506, https://github.com/Lightricks/ComfyUI-LTXVideo/pull/508, https://github.com/Lightricks/ComfyUI-LTXVideo/pull/516, https://github.com/Lightricks/ComfyUI-LTXVideo/pull/551), oldest from 25 May. I've asked them to merge one and apologized on our behalf for the breakage: https://github.com/Lightricks/ComfyUI-LTXVideo/issues/542#issuecomment-5424461135
Immediate workaround for affected users: in custom_nodes/ComfyUI-LTXVideo/pyramid_blending.py, remove pad, from the kornia import block and change the two pad( calls to F.pad( — torch.nn.functional is already imported as F in that file. Prefer this over pinning kornia==0.8.2, since kornia is shared across node packs in a ComfyUI venv.