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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

torchjpeg-0.9.3-cp38-cp38-manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.8

torchjpeg-0.9.3-cp37-cp37m-manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.7m

torchjpeg-0.9.3-cp36-cp36m-manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.6m

File details

Details for the file torchjpeg-0.9.3-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: torchjpeg-0.9.3-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for torchjpeg-0.9.3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fb0e4747eebc8c6cfa87b8483a792067cffde584760e0c37ce8e1fd851d3e5d
MD5 cf3d7dcd85808ebf4fbaaa4e92694bb4
BLAKE2b-256 9bbc0d7c34a33022fc23132e0c05c13d8fdcc5ba3b9acdc725f61cb7879752c9

See more details on using hashes here.

File details

Details for the file torchjpeg-0.9.3-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: torchjpeg-0.9.3-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for torchjpeg-0.9.3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8986c70b3c625f0a4fad665bfbf02cad3575e833e7127455408e606f83327b2a
MD5 5db23bcef9200ac8cafdc33f54585f56
BLAKE2b-256 09e7312619022808310ecdbc0d5316016360a8a3bd025caf3fc0d52170467173

See more details on using hashes here.

File details

Details for the file torchjpeg-0.9.3-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: torchjpeg-0.9.3-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for torchjpeg-0.9.3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e47b96352b9335e80607cdb6bae52db344ba21260040fa7f3d0ddd36c6d07f8f
MD5 21d2028c25523abf5cf749faf38fe772
BLAKE2b-256 f356995ddfcbc4922ef030c16c340dd02f90ca19336a73fe6a5b93f72ac51436

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