Skip to main content

A library of trainable and fixed discrete wavelet transform layers

Project description

dwtls: Discrete Wavelet Transform LayerS

PyPI version | Paper | Demo

dwtls is a downsampling/pooling layer library of discrete wavelet transform (DWT) layers with fixed and trainable wavelets presented in [1]. The use of DWT has an anti-aliasing filter and the perferct reconstruction property, at least either of which is lacked in conventional pooling layers. The two properties enables the DWT layers to propagate entire information of an input feature.

The library includes the following layers.

  • DWT layers with fixed wavelets (e.g., Haar, CDF22, CDF26, CDF15, and DD4 wavelets)
  • DWT layers with trainable wavelets (trainable DWT layers)
  • Weight-normalized trainable DWT layers The library works with Python>=3.7 and pytorch>=1.0.

Installation

dwtls can be installed with:

pip install dwtls

or

git clone git@github.com:TomohikoNakamura/dwtls.git
pip install -e dwtls

How to use

All DWT layers are implemented as subclasses of torch.nn.Module of PyTorch, so we can use them in many DNNs, using PyTorch scripts. We prepare a short tutorial notebook, which makes it easy to use our DWT layers in your codes.
Open In Colab

Citation

If you use dwtls in your work, please cite:

@article{TNakamura202104IEEEACMTASLP,
    author={Nakamura, Tomohiko and Kozuka, Shihori and Saruwatari, Hiroshi},
    title = {Time-Domain Audio Source Separation with Neural Networks Based on Multiresolution Analysis},
    journal = {IEEE/ACM Transactions on Audio, Speech, and Language Processing},
    volume=29,
    pages={1687--1701},
    month=apr,
    year=2021,
    doi={10.1109/TASLP.2021.3072496},
}

References

[1] Tomohiko Nakamura, Shihori Kozuka, and Hiroshi Saruwatari, “Time-Domain Audio Source Separation with Neural Networks Based on Multiresolution Analysis,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 29, pp. 1687–1701, Apr. 2021. pdf, demo

License

dwtls is MIT licensed (see LICENSE file).

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

dwtls-1.0.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dwtls-1.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file dwtls-1.0.2.tar.gz.

File metadata

  • Download URL: dwtls-1.0.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for dwtls-1.0.2.tar.gz
Algorithm Hash digest
SHA256 25e67775bc1e6ea26d539565d8d6be444097e384d2acef2307e5d889e6812edd
MD5 f296b8cabca50b5225105d51dc3dfb22
BLAKE2b-256 93f63984043bc29792c7dccb6ff97bcb3b5889124d60005da93ac123f5b26295

See more details on using hashes here.

File details

Details for the file dwtls-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dwtls-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for dwtls-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22822157925315afd68779bc1c71e6c2ba2bd5c85f9b398b7f143066dfc04eb1
MD5 2c3ae3774ce8912aad2e4c22e0bb11b9
BLAKE2b-256 5ff606c98b9155d56bcade7273451b2f0710140f49bbc8272045f816ad96e3c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page