/LaplacianLoss-pytorch

Implementation of Laplacian Loss in pytorch

Primary LanguagePython

Implementation of Laplacian Loss in Pytorch

Building Laplacian Pyramid using EXPAND operator. The PyrUp operator is implemented by torch.nn.functional.conv_transpose2d. The PyrDown operator is implemented by torch.nn.functional.conv2d using gaussian kernel.

laplacian

Comparison with OpenCV-implementation

scale pytorch-implementation opencv-implementation
input input input
0 my offcial
1 my offcial
2 my offcial
3 my offcial