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
Built Distributions
File details
Details for the file torchjpeg-0.9.5-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchjpeg-0.9.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f897fd9f00fdc7eced1b05f0ff0eded7c1d15340a7083b55e2ad3976606b17a |
|
MD5 | df2ec5d345d6747005073ea4e475353e |
|
BLAKE2b-256 | 40efa79e015f5d0403b196aeef4b5d95a70a019bfa1d25aa14ac4e62d2ab08d9 |
File details
Details for the file torchjpeg-0.9.5-cp37-cp37m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchjpeg-0.9.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7980d68b3fa61ea8abcb6c7186eca8d08e130bcaa71d843d14d1f2b6b7d8c024 |
|
MD5 | 89026223cf4eeba074cc7bce673bd096 |
|
BLAKE2b-256 | fa7381f4759c1dd59f18c434e00810f3f5c8e41a547e13edfe83c17d21bbba1a |
File details
Details for the file torchjpeg-0.9.5-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchjpeg-0.9.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2600b07934d48360aa951d6308f8e6d880e2d09ba5bc7c118a6dfc51fbe13144 |
|
MD5 | 601fe59dbede5b453020f8cb1b9fe5d6 |
|
BLAKE2b-256 | b329d5dc8bd07c8d1fe8186d47ff39c1354e43423e8ff411971710f1290b1c9a |