Skip to content

Fix broken pad import by switching to torch.nn.functional.pad - #551

Open
afkaf wants to merge 1 commit into
Lightricks:masterfrom
afkaf:master
Open

Fix broken pad import by switching to torch.nn.functional.pad#551
afkaf wants to merge 1 commit into
Lightricks:masterfrom
afkaf:master

Conversation

@afkaf

@afkaf afkaf commented Aug 22, 2026

Copy link
Copy Markdown
  • Removed the broken pad import from kornia.geometry.transform.pyramid.
  • Replaced all instances of the missing kornia pad() function with F.pad() from torch.nn.functional.
  • Standardized the padding calls in _pad_for_laplacian, _gaussian_pyramid, and _pyramid_blend to use the existing F.pad alias for consistency across the module.

- Removed the broken `pad` import from `kornia.geometry.transform.pyramid`.
- Replaced all instances of the missing kornia `pad()` function with `F.pad()` from `torch.nn.functional`.
- Standardized the padding calls in `_pad_for_laplacian`, `_gaussian_pyramid`, and `_pyramid_blend` to use the existing `F.pad` alias for consistency across the module.
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