alias free torch
Project description
Alias-Free-Torch
Simple torch module implementation of Alias-Free GAN.
This repository including
-
Alias-Free GAN style lowpass sinc filter @filter.py
-
Alias-Free GAN style up/downsample @resample.py
-
Alias-Free activation @act.py
-
and test codes @./test
Note: Since this repository is unofficial, filter and upsample could be different with official implementation.
Note: 2d lowpass filter is applying sinc instead of jinc (first order Bessel function of the first kind) in paper
UPDATE: Odd filter is now available
Requirements
Due to torch.kaiser_window
and torch.i0
are implemeted after 1.7.0
, our repository need torch>=1.7.0
.
- Pytorch>=1.7.0
TODO
- 2d sinc filter
- 2d resample
- devide 1d and 2d modules
- pip packaging
Test results 1d
Filter sine | Filter noise |
---|---|
upsample | downsample |
---|---|
Test results 2d
Filter L1 norm sine | Filter noise |
---|---|
upsample | downsample |
---|---|
Activation |
---|
References
- Alias-Free GAN
- adefossez/julius
- A. V. Oppenheim and R. W. Schafer. Discrete-Time Signal Processing. Pearson, International Edition, 3rd edition, 2010
Acknowledgement
This work is done at MINDsLab Inc.
Thanks to teammates at MINDsLab Inc.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for alias_free_torch-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636f248262a012c81d047182ca0471e0dfea0a4fd6d50be673f8401fa100ef94 |
|
MD5 | a695947bf180e2a09cf0bc9d3a2061a9 |
|
BLAKE2b-256 | 3f5e52d24a4a64378a960ab9dbaf12c757afa09cf16b6204cbc2df54b764be9f |