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

Uploaded Source

Built Distributions

File details

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

File metadata

  • Download URL: torchjpeg-0.9.6.dev12.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.dev12.tar.gz
Algorithm Hash digest
SHA256 486e9910728770df7999edeaeb43ef3520817765da1ac857dd4cf6c5909e2096
MD5 400f901f1093ff0331c84f674cd44c20
BLAKE2b-256 a4c7d28f52df6c91c694f88f8930e8063a3aac737c4d53dd2cb28aaf6f660738

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev12-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2b35e2385cb2c542be5694f9f1f71a0b7971b08718c91c0a5d678cd31be1ec8
MD5 df0408343cfffa4365b8c61d836a3ef9
BLAKE2b-256 264680e32c2dd2e50a6c561a9cfea7e736747f6cdc6a1f9ff25c62fe395554ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev12-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da1faad15a10c79695f79920223805cecb05a7341141bed0bbb4c4351662a750
MD5 910a8b8edd04a9ee51ba06efe08861e2
BLAKE2b-256 373511c6178ec14080467c00d33e2ba6c79c57b3415899fd0672826b97a99826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchjpeg-0.9.6.dev12-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78bc9ee31d8b9f84bf6654b579387240b97cb16b4d8754d6a41135d0f37c89f1
MD5 f8554fcab510774a6f1401a1136db829
BLAKE2b-256 295404b549af89e29e14cb56a9651f5d386e7c8964bd8e805a59ee636a8b0a5b

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