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

conflict with kornia in pyramid_blending.py

Open asamafilm opened this issue 5 months ago • 7 comments

hey guys, I encountered this import error: ComfyUI-LTXVideo\pyramid_blending.py", line 7, in from kornia.geometry.transform.pyramid import ( ImportError: cannot import name 'pad' from 'kornia.geometry.transform.pyramid' perhaps my kornia version in new comfyui has changed the module

python -c "import kornia.geometry.transform.pyramid as p; print(dir(p))": ['F', 'KORNIA_CHECK', 'KORNIA_CHECK_SHAPE', 'PyrDown', 'PyrUp', 'ScalePyramid', 'all', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'spec', '_get_pyramid_gaussian_kernel', 'annotations', 'build_laplacian_pyramid', 'build_pyramid', 'filter2d', 'find_next_powerof_two', 'gaussian_blur2d', 'is_powerof_two', 'math', 'nn', 'pyrdown', 'pyrup', 'torch']

python -c "import kornia; print(kornia.version)":
0.8.3

asamafilm avatar Jun 07 '26 22:06 asamafilm

Having the same issue

majidabdulred avatar Jun 08 '26 15:06 majidabdulred

See this comment: https://github.com/Lightricks/ComfyUI-LTXVideo/issues/494#issuecomment-4537872759

rencode-hash avatar Jun 08 '26 20:06 rencode-hash

Having the same issue

I stated this issue to request for an update but if you're having problem with this error simply activate your environment inside comfyui terminal, If you're on windows:

C:\Users\{User}\Documents\ComfyUI\.venv\Scripts\activate
  • change {User} with your own-

Then uninstall kornia with:

pip uninstall kornia

Then install the older version compatible with the node package:

pip install kornia==0.6.12

Many custom nodes were written against older Kornia releases.

alephba avatar Jun 08 '26 20:06 alephba

See this comment: #494 (comment)

Someone in that other thread says kornia==0.7.3 works for them.

Newer nodes would have a better chance of compatibility with the downgrade than with kornia==0.6.12

davoid999 avatar Jun 09 '26 10:06 davoid999

waiting for an update thx

L-LiaHD avatar Jun 11 '26 00:06 L-LiaHD

kornia==0.7.3 我尝试了可以使用

yyyingjjjie avatar Jun 13 '26 10:06 yyyingjjjie

I pushed this but the maintainers haven't merged it yet. https://github.com/Lightricks/ComfyUI-LTXVideo/pull/506 This should fix the conflict issuse.

Having the same issue

I stated this issue to request for an update but if you're having problem with this error simply activate your environment inside comfyui terminal, If you're on windows:

C:\Users\{User}\Documents\ComfyUI\.venv\Scripts\activate
  • change {User} with your own-

Then uninstall kornia with:

pip uninstall kornia

Then install the older version compatible with the node package:

pip install kornia==0.6.12

Many custom nodes were written against older Kornia releases.

DevNullInc avatar Jun 14 '26 16:06 DevNullInc