torchvision
The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.
Installation
TorchVision requires PyTorch 1.2 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.
Disclaimer on Datasets
This is a utility library that downloads and prepares public datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have license to use the dataset. It is your responsibility to determine whether you have permission to use the dataset under the dataset’s license.
If you’re a dataset owner and wish to update any part of it (description, citation, etc.), or do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thanks for your contribution to the ML community!
Release files for torchvision 0.5.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.5.0-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details |
| torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.9+ x86-64 | Details |
| torchvision-0.5.0-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
| torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | macOS 10.9+ x86-64 | Details |
| torchvision-0.5.0-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | macOS 10.9+ x86-64 | Details |
| torchvision-0.5.0-cp35-cp35m-win_amd64.whl | CPython 3.5 | CPython 3.5 pymalloc | Windows x86-64 | Details |
| torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl | CPython 3.5 | CPython 3.5 pymalloc | macOS 10.6+ x86-64 | Details |
| torchvision-0.5.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.5.0-cp27-cp27m-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
| torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | macOS 10.7+ x86-64 | Details |
Total release size: 31.4 MB
Release files / torchvision-0.5.0-cp38-cp38-win_amd64.whl
| Download URL | torchvision-0.5.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
78d455a1da7d10bd38f2e2a0d2ac285e4845c9e7e28aafdf068472cc96bd156b
|
|
BLAKE2b-256 checksum How to use checksums |
509403683a943b1d241e7f4bcdc79b2537b6094533a4b1712504059d4b07119e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
aa4354d339de2c5ea2633a6c94294c68bae3e42a4b099624299e2a50c9e97a85
|
|
BLAKE2b-256 checksum How to use checksums |
306bdc28e1714340d40e9422c4e94179fde72bf52f06f3e0a640beed408f527c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 438.9 kB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
517425af7d41b64caae0f5d9e6b14eeb48d6e62d45f302b73a11a9ec5ee3b6c8
|
|
BLAKE2b-256 checksum How to use checksums |
fde8f76fbe33c77b1c6a7aa9fa79e87a992dfe5c23b28b0f1e933720ebe3e2a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp37-cp37m-win_amd64.whl
| Download URL | torchvision-0.5.0-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0ca9cae9ddf1784737493e201aa9411abe62a4479b2e67d1d51b4b7acf16f6eb
|
|
BLAKE2b-256 checksum How to use checksums |
7d3e2b5ddf744226159dc90a52f0d044c0de7c5ca4f42d12a350a674ebb6fb2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
a696ec5009eb52356508eb9b23ddb977043fb82ff7b204459e4c81aca1e5affe
|
|
BLAKE2b-256 checksum How to use checksums |
1c32cb0e4c43cd717da50258887b088471568990b5a749784c465a8a1962e021
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
| Download URL | torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl |
|---|---|
| Size | 438.9 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
1af6d7b0a515d2a83fe9b6e7969b57ba94ba87a3333e7ed707324a5be1ef5f60
|
|
BLAKE2b-256 checksum How to use checksums |
02c826ff0db66e6dd30a3ed2bfbceae9744359ae4cbb48864c70121a41c21ca5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp36-cp36m-win_amd64.whl
| Download URL | torchvision-0.5.0-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1a68d3d98e074d995f3d42a492cca716b0d94605a6fadddf0ce9665425968669
|
|
BLAKE2b-256 checksum How to use checksums |
8059ba66ebe892ec8302048434455fb6a9944eb0a78315184f8757094ba95435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
fea3d431bf639c0719afff5972eb568ebe143eba447c1c8bb491c7dfb0025ed6
|
|
BLAKE2b-256 checksum How to use checksums |
7e906141bf41f5655c78e24f40f710fdd4f8a8aff6c8b7c6f0328240f649bdbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl
| Download URL | torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl |
|---|---|
| Size | 438.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
358967343eaba74fd748a87f40ea75ca23757e947dbef9a11cd53414d707f793
|
|
BLAKE2b-256 checksum How to use checksums |
da1ae729a59b95edecc76b16a4838138fbfa8c410084aa37b5f9be49869e8ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp35-cp35m-win_amd64.whl
| Download URL | torchvision-0.5.0-cp35-cp35m-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2bf1dc1e16c73c5810d96e4ea463e61129e890100740cd57724413a84d301e41
|
|
BLAKE2b-256 checksum How to use checksums |
28f433ba5470be91eab6aadd6a8d5a17bb8d31b324833a51967ae61920c452bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
9e85ba17ff93a0cf6afd39b9a0ad56ca7321db4f1eb90d2034d3b0ecd79be47b
|
|
BLAKE2b-256 checksum How to use checksums |
d6d064a337d3fadf7bee37c699f8574b038b8b0207f5815a322eecd52c65417a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl
| Download URL | torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl |
|---|---|
| Size | 438.9 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ x86-64 |
|
SHA-256 checksum How to use checksums |
4dd05cbc497210928ae3d4d6194561985263c879c3554e9f1823a0fa43d35746
|
|
BLAKE2b-256 checksum How to use checksums |
5112eaad19f16bb84431b3cdfe1d55365171faac3d15d68e3a016765d91992b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
ec7e4cd54f5ff3a889b90f24b33da1fa9fe3f78d17348965678d9503de1e4a49
|
|
BLAKE2b-256 checksum How to use checksums |
a868627a2f02233aa7c26590336e92c7859d196ca0e870d0875041d6ef3df516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl
| Download URL | torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
323500d349d8d91ce2662de41212e8eb1845c68dbf5d4f215ca1e94c7f20723b
|
|
BLAKE2b-256 checksum How to use checksums |
57b34af0dac6d9536905c3bc5427d7e6fbd6bd371725b2e4be44dfbdc44683f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl
| Download URL | torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 438.1 kB |
| Tags | CPython 2.7 CPython 2.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
35e9483858cf8a38debc647c74741605c5c12448d314aa96961082380aadf7e5
|
|
BLAKE2b-256 checksum How to use checksums |
53251f44c14f73c32bbecebc3f2b31845ed05ecc55cb5bcce359bbd9fe4bcb3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|