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.dev8.tar.gz (22.2 kB view details)

Uploaded Source

Built Distributions

File details

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

File metadata

  • Download URL: torchjpeg-0.9.6.dev8.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • 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.dev8.tar.gz
Algorithm Hash digest
SHA256 ad7fb6beab77812ff22727cd4943a679e95669e51266791a2553cdbd19486196
MD5 f8887ce23ee942ebcabd64d01cd34b06
BLAKE2b-256 d40328c4a992bd5c80f4cf802c3f406f7cc596d9019858c53321e9efd0ba23c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev8-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 708e627f47cd289cf5b9693794add4953a0bbc21a7db4b6f7a43b9ff5b0ea972
MD5 5080a089cbff144c6bcff44165ad95da
BLAKE2b-256 764375ba607c982588b75fba9732e63aa3b3317b84223a810129bcb1d7ba524b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev8-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d304b389f74c29d3473f2a000fc811a872b5ded5935b0cd64f59c604b5d60f3
MD5 818d8e3d33082a6bfaf06f6e1c0425b4
BLAKE2b-256 31f9e5fc6dd8e6c4b77e03760eac910aa5ad4774daa4f5b891f6962d461e09e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev8-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23a3b58b3f725f4d8a95ba3bf985ea376682d41059ed121632bf33b19b679a2a
MD5 3d85e936ae449d936c57199b44ce652b
BLAKE2b-256 8b60c78742e7ddfc98334386d6c945be376e64a93713099f65036d5cbbca7b82

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