A simple library that implements differentiable forward and inverse Haar Wavelets.
pip install haar_pytorch
pip install --upgrade git+https://github.com/bes-dev/haar_pytorch.git
import torch
from haar_pytorch import HaarForward, HaarInverse
haar = HaarForward()
ihaar = HaarInverse()
img = torch.randn(5, 4, 64, 64)
wavelets = haar(img)
img_reconstructed = ihaar(wavelets)