torchvision
The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.
Installation
TorchVision requires PyTorch 1.1 or newer.
Anaconda:
conda install torchvision -c pytorch
pip:
pip install torchvision
From source:
python setup.py install
# or, for OSX
# MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
By default, GPU support is built if CUDA is found and torch.cuda.is_available() is true. It’s possible to force building GPU support by setting FORCE_CUDA=1 environment variable, which is useful when building a docker image.
Image Backend
Torchvision currently supports the following image backends:
Pillow (default)
Pillow-SIMD - a much faster drop-in replacement for Pillow with SIMD. If installed will be used as the default.
accimage - if installed can be activated by calling
torchvision.set_image_backend('accimage')
C++ API
TorchVision also offers a C++ API that contains C++ equivalent of python models.
Installation From source:
mkdir build
cd build
cmake ..
make
make install
Documentation
You can find the API documentation on the pytorch website: http://pytorch.org/docs/master/torchvision/
Contributing
We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.
Metadata
Release files for torchvision 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| torchvision-0.4.0-cp37-cp37m-manylinux1_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | macOS 10.7+ x86-64 | Details |
| torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | macOS 10.7+ x86-64 | Details |
| torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | macOS 10.6+ x86-64 | Details |
| torchvision-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc wide-unicode | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.4.0-cp27-cp27m-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | macOS 10.6+ x86-64 | Details |
Total release size: 46.4 MB
Release files / torchvision-0.4.0-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | torchvision-0.4.0-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
8114c33b736ee430496eef4fe03b25be8b939b2abd2a968558737bb9aed1928b
|
|
BLAKE2b-256 checksum How to use checksums |
51832d77d040e34bd8f70dcb4770f7eb7d0aa71e07738abf6831be863ade00db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl
| Download URL | torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 582.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
e00de7571d83f968f5aea7a59e84e3262669acef0a077ce4bd705eca2df68167
|
|
BLAKE2b-256 checksum How to use checksums |
be9d01afb6f6eccde291df2ec254eab7947cd9251cd02d4fac2968fd49e8af73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d7939f2ca401de3067a30b6f4dcef63d13d24a4cd1ddc2d3a9af3413ce658d03
|
|
BLAKE2b-256 checksum How to use checksums |
06e6a564eba563f7ff53aa7318ff6aaa5bd8385cbda39ed55ba471e95af27d19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl
| Download URL | torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 582.1 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
afff8e987564192bc7f139d8b089541d4471ad6fc99e977e8bc8dbb4e0873041
|
|
BLAKE2b-256 checksum How to use checksums |
55b0ac86b0b393ec5e73db2f27660f242404dbf9c9449d79a87ba023e7f3cb0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
904ef213594672f2ed7fafa3ab010cbf2a4704a951a7bf221cf36b3d2e3acd62
|
|
BLAKE2b-256 checksum How to use checksums |
1cf6e927f7db4f422af037ca3f80b3391e6224ee3ee86473ea05028b2b026f82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl
| Download URL | torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl |
|---|---|
| Size | 582.2 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ x86-64 |
|
SHA-256 checksum How to use checksums |
6fff5a31d50de3a59dcceda2a48de9df33a5f43357dc3e0da0ffbb97699aec52
|
|
BLAKE2b-256 checksum How to use checksums |
ebc14e7ee6376da798ba8a32bd28b1660c7c88dea93e0ecc3a66d2a24f2c8c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl
| Download URL | torchvision-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
3a8e9403252fefdf6e8f9993ae111d28eb4ad1e73f696f03de485d7f77d88067
|
|
BLAKE2b-256 checksum How to use checksums |
5a4fdec9ae555a91f87586fd9b1e00b9684f08b94027df29b9745bdcdfa1ce03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp27-cp27m-manylinux1_x86_64.whl
| Download URL | torchvision-0.4.0-cp27-cp27m-manylinux1_x86_64.whl |
|---|---|
| Size | 8.8 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
740b3718470aa4ec0b389df876eb25117df1952dd2e8105b7828a02aa5bce73b
|
|
BLAKE2b-256 checksum How to use checksums |
09f14640b643fc54f3eea7b1f1e406cee7907c41f1dc113375d2298416340f82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Release files / torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl
| Download URL | torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl |
|---|---|
| Size | 583.7 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ x86-64 |
|
SHA-256 checksum How to use checksums |
d8c2402704ce8ef8e87e4922160388c7ca010ef27700082014d6bd694cf1cc51
|
|
BLAKE2b-256 checksum How to use checksums |
0a1a8cf4c4481f4c2b006766e8ba79b57fe82e0ebd39b7a46c2d448717fc8e5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
|
Security for torchvision 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.