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

Uploaded Source

Built Distributions

File details

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

File metadata

  • Download URL: torchjpeg-0.9.6.dev11.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.dev11.tar.gz
Algorithm Hash digest
SHA256 8b527a2cb854949c325fff2e5bcc3090cfa181534348c59065a67d4cafe9f103
MD5 3914177d2b49e7c26255d548a328abf1
BLAKE2b-256 138bbacdf8dba70ad24048cb5695b45caeeff367000e1c1d7cb970a09deedeb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev11-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d1ecba9b2d6b1fd74a1ae268f11b0009ba8fa3b52c1f17e14e111fc562af9fd
MD5 5f1ae444edc0be406ba5fd6317ff0c06
BLAKE2b-256 96d18bea0a310adf420a70ecd76b67602a75233e23d3c5e20cb8882b7561ac4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev11-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df5f002c051b7b15dad987ab045ef3fecbe438279f72044d3578ec4c8480a6d7
MD5 621c0f110707ae6d5e834f19ea6ff210
BLAKE2b-256 c467d10181d81925fe9235fb5d415fb4beab57c90dc986d7ad355b6d5d102d40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev11-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15c7ed532baa5f6ecfeef807ec945401992934cdf8234e82dd4d56ca6dd78432
MD5 b219a108356871386fd8b5cb1270d8df
BLAKE2b-256 24a886c9cb48a9875c6634290cf0244bb50ee86722efdad0c4b18495f1a16cfa

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