Skip to content

Use torch padding with modern kornia#526

Open
Julien D (jdaln) wants to merge 1 commit into
Lightricks:masterfrom
jdaln:fix/kornia-pad-import
Open

Use torch padding with modern kornia#526
Julien D (jdaln) wants to merge 1 commit into
Lightricks:masterfrom
jdaln:fix/kornia-pad-import

Conversation

@jdaln

Copy link
Copy Markdown

Current kornia releases no longer expose pad from kornia.geometry.transform.pyramid (the module only uses torch.nn.functional.pad internally), and requirements.txt leaves kornia unpinned — so pyramid_blending.py fails to import on fresh installs. Use torch.nn.functional.pad directly; the five other imported names (PyrUp, build_laplacian_pyramid, build_pyramid, find_next_powerof_two, is_powerof_two) still exist upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant