From a3b8bdbc8642b50cd42492d1f0818dfaafd7ccbe Mon Sep 17 00:00:00 2001 From: DevNullInc Date: Mon, 8 Jun 2026 09:33:02 -0700 Subject: [PATCH] fix kornia pyramid padding import for compatibility with v0.8.3+ 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. --- pyramid_blending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid_blending.py b/pyramid_blending.py index afc4bac..4d13b0b 100644 --- a/pyramid_blending.py +++ b/pyramid_blending.py @@ -10,8 +10,8 @@ build_pyramid, find_next_powerof_two, is_powerof_two, - pad, ) +pad = F.pad from torch import Tensor from .nodes_registry import comfy_node