An extension of torchvision for decoding AVIF and HEIC images.
Project description
An extension of TorchVision for decoding AVIF and HEIC images.
Usage
Assuming torchvision is already installed:
$ pip install torchvision-extra-decoders
Then, you can use the HEIC and AVIF decoders from torchvision like the other decoders (docs):
from torchvision.io import decode_image, decode_heic, decode_avif
img = decode_image("image.heic")
img = decode_image("image.avif")
img = decode_heic("image.heic")
img = decode_avif("image.avif")
LICENSE
This project is released under the LGPL 2.1 License.
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 torchvision_extra_decoders-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchvision_extra_decoders-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 95.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689352d3f44e2e7c4366926e38ddd1ad8861b75dc6c2fa126c74aa5a07f145cc |
|
MD5 | 78e3abd6c210f5aba5f8ae97579a236f |
|
BLAKE2b-256 | dd27c9aab79cc197e943f74e8c18911f5c71688158cfa9f88ff727636d2800c4 |
File details
Details for the file torchvision_extra_decoders-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchvision_extra_decoders-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 95.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05db7783867d149b159f37d7cf938d55ffc0dc1d495831d9d0ee43d2d0bd44d8 |
|
MD5 | cde828614587617199c221ee4bf9ce33 |
|
BLAKE2b-256 | 8ccb52baf0ca17c2214f0cc3156cf05286aa8d7361d768c97d7e419186432c84 |
File details
Details for the file torchvision_extra_decoders-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchvision_extra_decoders-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 94.2 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b692608241faf9e8b751a42e5d4064ac86700a7610bd0dd5b347ff1a977e2c |
|
MD5 | b76db2993584aa4a6d7f7e639baa2fd7 |
|
BLAKE2b-256 | 37d8002bd02f945785338b5ef6764acb3c858c468c198af21f5464b22580732f |
File details
Details for the file torchvision_extra_decoders-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: torchvision_extra_decoders-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 93.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb7470409a08420be4dbe0477e3f8609a31d4d148a9d91e8496fd4d896b9416 |
|
MD5 | 2a0c251d8edff651ba8ff20f68698204 |
|
BLAKE2b-256 | eff0b7c201de1d4f9e2feccd39a7f53da10eab968e0f521f17a17968170da441 |