ComfyUI-LTXVideo icon indicating copy to clipboard operation
ComfyUI-LTXVideo copied to clipboard

fix kornia pyramid padding import for compatibility with v0.8.3+

Open DevNullInc opened this issue 5 months ago • 0 comments

The latest updates to the kornia library totally broke this file because they removed the pad function from the pyramid submodule. Because of that, it was throwing a fatal import error and causing the entire extension to fail silently on launch whenever ComfyUI booted up. This patch fixes the crash by pulling pad out of the kornia list and just mapping it directly to the torch functional pad that is already loaded in the environment. It keeps everything working exactly the same way but actually lets the node pack load properly on newer setups.

DevNullInc avatar Jun 08 '26 16:06 DevNullInc