Skip to main content

Utilities for JPEG data access and manipulation in pytorch

Project description

TorchJPEG

This package contains a C++ extension for pytorch that interfaces with libjpeg to allow for manipulation of low-level JPEG data. By using libjpeg, quantization results are guaranteed to be consistent with other applications, like image viewers or MATLAB, which use libjpeg to compress and decompress images. This is useful because JPEG images can be effected by round-off errors or slight differences in the decompression procedure. Besides this, this library can be used to read and write DCT coefficients, functionality which is not available from other python interfaces.

Besides this, the library includes many utilities related to JPEG compression, many of which are written using native pytorch code meaning they can be differentiated or GPU accelerated. The library currently includes packages related to the DCT, quantization, metrics, and dataset transformations.

LIBJPEG

Currently builds against: libjpeg-9d. libjpeg is statically linked during the build process. See http://www.ijg.org/files/ for libjpeg source.

Documentation

See https://queuecumber.gitlab.io/torchjpeg/

Install

Install using pip, note that only Linux builds are supported at the moment.

pip install torchjpeg

If there is demand for builds on other platforms it may happen in the future. Also note that the wheel is intended to be compatible with manylinux2014 which means it should work on modern Linux systems, however, because of they way pytorch works, we can't actually build it using all of the manylinux2014 tools. So compliance is not guaranteed and YMMV.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

torchjpeg-0.9.6.dev13.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

File details

Details for the file torchjpeg-0.9.6.dev13.tar.gz.

File metadata

  • Download URL: torchjpeg-0.9.6.dev13.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/4.19.78-coreos

File hashes

Hashes for torchjpeg-0.9.6.dev13.tar.gz
Algorithm Hash digest
SHA256 e07e3a6023059e5d10fbc3dd17c3655eca6232810322d79778f9be5bdf7f8051
MD5 da607d68f1f308f8b95d402c70373eb1
BLAKE2b-256 6b28072d80b67192456cd8e05c5407779f82c124519dc29ae95b7b10e1f93480

See more details on using hashes here.

File details

Details for the file torchjpeg-0.9.6.dev13-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev13-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a99f0cb7630776d71bd1ef62ed5ac035605e982e7b87c7167d28eec352650aa0
MD5 e92b17f69566665ac22c2a0881debac0
BLAKE2b-256 8ffd62a2cdbb4c21892a5a8728650c97af0aedcbc2ae5a558f94ea0cb546ac59

See more details on using hashes here.

File details

Details for the file torchjpeg-0.9.6.dev13-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev13-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38dd50f2353256cc9e46484f8b7b0be08ff0b7b30ff0ff5d6a8b06c1eff497e9
MD5 fb0d3c1ffd3f806c24b3e64ca097a550
BLAKE2b-256 eba5c1028f3ccc90449e7664ff10b79a70abf1b09d478eb6a9cdf8936d2ebd09

See more details on using hashes here.

File details

Details for the file torchjpeg-0.9.6.dev13-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev13-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 643a12a60f2ac5105f9d852a232fc9e5deedb60641721781aceaa0f8cb3c58ee
MD5 fb1a63de5a2e86f446dc695cd2be3e27
BLAKE2b-256 28db18563979a6ea8e19542a77ff435ddb95817ffd2fc7c9021af2c6b5e02314

See more details on using hashes here.

Supported by

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