No project description provided
Project description
DCT-Autoencoder
A PyTorch-based implementation of 2D Discrete Cosine Transform (DCT) autoencoder.
Overview
The dct-autoencoder package offers a PyTorch implementation of the 2D Discrete Cosine Transform (DCT), which is fully differentiable and can be integrated into deep learning models. It is particularly useful for reducing the spatial dimensions of images by transforming them into the frequency domain via DCT. Inspired by the JPEG algorithm, the package also includes a compression method using low-pass filtering, which reduces the number of frequency domain coefficients while retaining most of the image information.
Installation
Install the package via pip:
pip install dct-autoencoder
Usage
For detailed usage examples, refer to the Usage Notebook. It provides code snippets and demonstrations of the DCT autoencoder in action.
Visualizations
Computation Graph
The following figure illustrates the computation graph of the DCT autoencoder:
DCT Basis Functions
DCT basis functions for a block size of 16:
TODO
- Add support for color images
- Improve documentation
- Add unit tests
- Distribute package on PyPI
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dct_autoencoder-0.2.1.tar.gz.
File metadata
- Download URL: dct_autoencoder-0.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.8.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a7fae0fffbae7cdab9de684882c9ce2b98b1b59d21ae3436526114ce38ccd3f
|
|
| MD5 |
1fcb48b0cf806b92c6569593718ce7e6
|
|
| BLAKE2b-256 |
6c0bbb636910065819db37970fec222795062e71df0b714bb880f5c7b63fbe29
|
File details
Details for the file dct_autoencoder-0.2.1-py3-none-any.whl.
File metadata
- Download URL: dct_autoencoder-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.8.0-45-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d2581e33804cfff17db97ebf204850706b3f77a1d07031a533c7d599941463
|
|
| MD5 |
43fa5b6fad53e717d440e206413c1e1b
|
|
| BLAKE2b-256 |
19773abae7c346a9bb9b2095790d4f28af77a37127a8c9f95141542f5f382efa
|