Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alias-free-torch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alias-free-torch

alias free torch

  • 0.0.6
  • PyPI
  • Socket score

Maintainers
1

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.

Still working! If you notice some error or typo, please open new issue! v0.0.8 is TESTED

UPDATE: You can download alias-free-torch from pip

python -m pip install alias-free-torch

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

For custom torch users, pip will not check torch version.

TODO

  • 2d sinc filter
  • 2d resample
  • devide 1d and 2d modules
  • pip packaging
  • rewrite upsample
  • Upsample pad size issue
  • (Upsample) support calculation for [B,C,T/(H,W)] (now only supports [B,T/(H,W)] or [B,1,T/(H,W)])
  • set filter as register buffer
  • (Downsample & Filter) support calculation for [B,C,T/(H,W)] (now only supports [B,T/(H,W)] or [B,1,T/(H,W)])
  • provide loadable ckpt for lower version of torch
  • documentation

Test results 1d

Filter sineFilter noise
filtersinfilternoise
upsampledownsample
up2down10
up256down100

Test results 2d

Filter L1 norm sineFilter noise
filter2dsinfilter2dnoise
upsampledownsample
up2d2downsample2d2
up2d8downsample2d4

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc