Skip to main content

Multilevel Wavelet-Band Transformer layers

Project description

waveletvit: Multilevel Wavelet-Band Transformer Layers

PyPI Version Python Versions TensorFlow License

waveletvit provides TensorFlow/Keras WaveletViT layers for 1D, 2D, and 3D multilevel wavelet-band tokenization, attention, and reconstruction.

Capabilities

  • WaveletTokenizer1D, WaveletTokenizer2D, and WaveletTokenizer3D.
  • WaveletViTBlock1D, WaveletViTBlock2D, and WaveletViTBlock3D.
  • WaveletAssembler1D, WaveletAssembler2D, and WaveletAssembler3D.
  • UWaveletViTNet3D for a 3D U-Net with a WaveletViT bottleneck.

Limitations

  • Inputs are TensorFlow tensors with channel-last layout.
  • Spatial sizes should be compatible with the configured DWT levels.

Dependencies

  • tensorflow
  • TFDWT

Installation

pip install waveletvit

Minimal Example

import tensorflow as tf
from waveletvit import UWaveletViTNet3D

model = UWaveletViTNet3D(
    input_shape=(32, 32, 32, 1),
    config=(16, 32, 64, 128),
    n_classes=4,
    levels=1,
    wave="haar",
)

x = tf.random.normal([1, 32, 32, 32, 1])
y = model(x)

print(y.shape)

Citation

This software is released for broad research, educational, and engineering use. If this package helps your work, please cite the following paper:

@misc{tarafdar2026interpretablefrugallearningsystems,
      title={Interpretable and Frugal Learning Systems Employing Multiresolution Pyramids and Volterra Kernels},
      author={Kishore Kumar Tarafdar},
      year={2026},
      eprint={2606.15011},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2606.15011},
}

License

Apache License 2.0. See LICENSE.

Copyright 2026 Kishore Kumar Tarafdar.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

waveletvit-0.0.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file waveletvit-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: waveletvit-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for waveletvit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0af445982970804bfcd860a1ba9c06a948230c9b8cee05f53e9254448c4c5073
MD5 e870f13520a1fad8d9476a056c2b26aa
BLAKE2b-256 4d7247e48b5bc9691cbd1f62dddd843677edcc6d11527d7bfe0598c2de981670

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