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.dev9.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

File details

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

File metadata

  • Download URL: torchjpeg-0.9.6.dev9.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.dev9.tar.gz
Algorithm Hash digest
SHA256 6de059d1ae8e48db8cad1239b42a8a3f023466c22ea1163bd4ede1c7d267f3ef
MD5 f6f5b24e9339f8a9bdee1ce0b14f62e5
BLAKE2b-256 1116269c62a7a2741ce3c51aa97bbe10da95a1c278140a0708747a3007741106

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev9-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9262eaf7920ae54d91e755c6db926b8322df81948090719d9eae16981db6939d
MD5 d38317e302fcfd6575eb2f541c610143
BLAKE2b-256 bfc7d91eb2d289f1b7140105dc5f555d3408234ded04c957889081b8f63370cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev9-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2d31545c038cebaa07f87d4b8916192f30444aa4a613a95ee185b6b56f20385
MD5 eae6a652191aa8bab19e9337e0686650
BLAKE2b-256 0ab5ddebdf397e8ccb90fb6c54950e8417c7cff767850f523c53852760823ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev9-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9947dc6e1ce42bc2c291720cc1f495a15b9d040e32d195de404ced5acf56d83
MD5 46d82fc9e2e333d45a49609ef4b57034
BLAKE2b-256 2f2d2d9611c02c41d9026df2cb15ae55e4fada949ad4485581986fc2b122d3b3

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