TFDST: Fast Discrete Shearlet Transform Layers in TensorFlow
TFDST provides differentiable TensorFlow/Keras layers for fast 2D and 3D
discrete shearlet transforms and their inverse transforms.
Copyright 2025 Kishore Kumar Tarafdar. Filter-bank construction follows mathematical structure developed with credit to Vineet Ghule. This implementation provides differentiable TensorFlow/Keras layers with batched multichannel support and performance-oriented updates.
Capabilities
DST2D/IDST2Dthroughtransform=Noneortransform="inverse"DST3D/IDST3Dthroughtransform=Noneortransform="inverse"- Batched multichannel TensorFlow tensors
- Backpropagation through the transform layers
Limitations
- Inputs are expected to match the configured spatial size
N. - 2D input shape:
[batch, N, N, channels]. - 3D input shape:
[batch, N, N, N, channels]. - Wavelet filter coefficients are provided through
PyWavelets.
Installation
pip install TFDST
Minimal Example
import tensorflow as tf
from TFDST.DST2DFB import DST2D
from TFDST.DST3DFB import DST3D
N = 32
# 2D
x2 = tf.random.normal([1, N, N, 1])
dst2 = DST2D(N=N, J=2, L=[1, 2], B=[4, 8], norm=True, wave="bior1.5")
idst2 = DST2D(N=N, J=2, L=[1, 2], B=[4, 8], norm=True, wave="bior1.5", transform="inverse")
y2 = dst2(x2)
r2 = idst2(y2)
# 3D
x3 = tf.random.normal([1, N, N, N, 1])
dst3 = DST3D(N=N, J=2, L=[1, 2], B=[4, 8], norm=True, wave="bior1.5")
idst3 = DST3D(N=N, J=2, L=[1, 2], B=[4, 8], norm=True, wave="bior1.5", transform="inverse")
y3 = dst3(x3)
r3 = idst3(y3)
print(x2.shape, r2.shape)
print(x3.shape, r3.shape)
Arguments
| Argument | Meaning |
|---|---|
N |
Spatial size of each axis; 2D uses N x N, 3D uses N x N x N. |
J |
Number of multiscale shearlet levels. |
L |
Shear parameters per level; must have length J. |
B |
Bandwidth/window parameters per level; must have length J. |
wave |
PyWavelets wavelet name used for the radial wavelet filters, e.g. "bior1.5". |
norm |
If True, applies filter-bank normalization. |
transform |
Use None for forward DST and "inverse" for inverse DST. |
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.
Metadata
Release files for TFDST 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tfdst-0.0.2.tar.gz | 11.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tfdst-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / tfdst-0.0.2.tar.gz
| Download URL | tfdst-0.0.2.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdd4c511ed847307592453c4166ee931a1eec79358f8d6cd14052a27ba0c2b13
|
|
BLAKE2b-256 checksum How to use checksums |
ea8eac4da24e2a21c3de9ccafe77900704b667a790db3051b43d7b47ebdf3069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / tfdst-0.0.2-py3-none-any.whl
| Download URL | tfdst-0.0.2-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87bc3978fa31c119f65d72ee3322e01f3e2649f9181095a1bf0fb4d1b0d290aa
|
|
BLAKE2b-256 checksum How to use checksums |
a280a02b419ec5f02c99c5631c98028d18f6079dd5c0771f4098aa125cefca57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for TFDST 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.