Pytorch implementation of the forward and inverse discrete wavelet transform using Haar Wavelets.
Project description
haar_pytorch: Pytorch implementation of forward and inverse Haar Wavelets 2D
A simple library that implements differentiable forward and inverse Haar Wavelets.
Install the latest version
pip install --upgrade git+https://github.com/bes-dev/haar_pytorch.git
Example
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for haar_pytorch-2021.11.16.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 978a3e51fd5fc30f5a157347f344d79d76330ea2921c626031c8c3440b85094e |
|
MD5 | 18e3de1de40155f9100556909bfd5ae5 |
|
BLAKE2b-256 | 8f11dd44d537d8766af2c17dafd66794100fa516eab7dcd31c8af6ebe27a640a |