Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bes-dev/haar_pytorch

Pytorch implementation of forward and inverse Haar Wavelets 2D
https://github.com/bes-dev/haar_pytorch

computer-vision deeplearning generative-adversarial-network pytorch

Last synced: about 15 hours ago
JSON representation

Pytorch implementation of forward and inverse Haar Wavelets 2D

Awesome Lists containing this project

README

        

# haar_pytorch: Pytorch implementation of forward and inverse Haar Wavelets 2D

A simple library that implements differentiable forward and inverse Haar Wavelets.



## Install package

```bash
pip install haar_pytorch
```

## Install the latest version

```bash
pip install --upgrade git+https://github.com/bes-dev/haar_pytorch.git
```

## Example
```python
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)
```