Skip to main content

No project description provided

Project description

DCT-Autoencoder

A PyTorch-based implementation of 2D Discrete Cosine Transform (DCT) autoencoder.

PyPI version

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:

Computation Graph

DCT Basis Functions

DCT basis functions for a block size of 16:

DCT Basis Functions

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

dct_autoencoder-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

dct_autoencoder-0.2.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for dct_autoencoder-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7a7fae0fffbae7cdab9de684882c9ce2b98b1b59d21ae3436526114ce38ccd3f
MD5 1fcb48b0cf806b92c6569593718ce7e6
BLAKE2b-256 6c0bbb636910065819db37970fec222795062e71df0b714bb880f5c7b63fbe29

See more details on using hashes here.

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

Hashes for dct_autoencoder-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61d2581e33804cfff17db97ebf204850706b3f77a1d07031a533c7d599941463
MD5 43fa5b6fad53e717d440e206413c1e1b
BLAKE2b-256 19773abae7c346a9bb9b2095790d4f28af77a37127a8c9f95141542f5f382efa

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