Skip to main content

image and video datasets and models for torch deep learning

Project description

torchvision

https://travis-ci.org/pytorch/vision.svg?branch=master https://codecov.io/gh/pytorch/vision/branch/master/graph/badge.svg https://pepy.tech/badge/torchvision https://img.shields.io/badge/dynamic/json.svg?label=docs&url=https%3A%2F%2Fpypi.org%2Fpypi%2Ftorchvision%2Fjson&query=%24.info.version&colorB=brightgreen&prefix=v

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!

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

torchvision-0.5.0-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.8

torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl (438.9 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

torchvision-0.5.0-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7mWindows x86-64

torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.7m

torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl (438.9 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

torchvision-0.5.0-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.6m

torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl (438.9 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

torchvision-0.5.0-cp35-cp35m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.5mWindows x86-64

torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.5m

torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl (438.9 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 2.7mu

torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl (4.0 MB view details)

Uploaded CPython 2.7m

torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl (438.1 kB view details)

Uploaded CPython 2.7mmacOS 10.7+ x86-64

File details

Details for the file torchvision-0.5.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 78d455a1da7d10bd38f2e2a0d2ac285e4845c9e7e28aafdf068472cc96bd156b
MD5 39d3e8fba405caffa654b26e1b9e1f91
BLAKE2b-256 509403683a943b1d241e7f4bcdc79b2537b6094533a4b1712504059d4b07119e

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.8
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 aa4354d339de2c5ea2633a6c94294c68bae3e42a4b099624299e2a50c9e97a85
MD5 eff8c9c15d9853d22806e3250b53443c
BLAKE2b-256 306bdc28e1714340d40e9422c4e94179fde72bf52f06f3e0a640beed408f527c

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 438.9 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 517425af7d41b64caae0f5d9e6b14eeb48d6e62d45f302b73a11a9ec5ee3b6c8
MD5 a2718115e9367f860e65cba90487ff4f
BLAKE2b-256 fde8f76fbe33c77b1c6a7aa9fa79e87a992dfe5c23b28b0f1e933720ebe3e2a4

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0ca9cae9ddf1784737493e201aa9411abe62a4479b2e67d1d51b4b7acf16f6eb
MD5 5e3620cef19096af60e27878286eb17a
BLAKE2b-256 7d3e2b5ddf744226159dc90a52f0d044c0de7c5ca4f42d12a350a674ebb6fb2a

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.7m
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a696ec5009eb52356508eb9b23ddb977043fb82ff7b204459e4c81aca1e5affe
MD5 f038bffffa63405993722564d484c10b
BLAKE2b-256 1c32cb0e4c43cd717da50258887b088471568990b5a749784c465a8a1962e021

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 438.9 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1af6d7b0a515d2a83fe9b6e7969b57ba94ba87a3333e7ed707324a5be1ef5f60
MD5 695842635b517e91b7e7a1ad664f5ed1
BLAKE2b-256 02c826ff0db66e6dd30a3ed2bfbceae9744359ae4cbb48864c70121a41c21ca5

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1a68d3d98e074d995f3d42a492cca716b0d94605a6fadddf0ce9665425968669
MD5 63c7cc7ece80e35fa50d9839d128d2c5
BLAKE2b-256 8059ba66ebe892ec8302048434455fb6a9944eb0a78315184f8757094ba95435

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.6m
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fea3d431bf639c0719afff5972eb568ebe143eba447c1c8bb491c7dfb0025ed6
MD5 9462149862353b6b98d0e8a67c56d30f
BLAKE2b-256 7e906141bf41f5655c78e24f40f710fdd4f8a8aff6c8b7c6f0328240f649bdbe

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 438.9 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 358967343eaba74fd748a87f40ea75ca23757e947dbef9a11cd53414d707f793
MD5 944daf3cb2922b5cd9ea80b316f0661d
BLAKE2b-256 da1ae729a59b95edecc76b16a4838138fbfa8c410084aa37b5f9be49869e8ec3

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 2bf1dc1e16c73c5810d96e4ea463e61129e890100740cd57724413a84d301e41
MD5 2dad19d7ee20a0e53ae7038ff8c472c0
BLAKE2b-256 28f433ba5470be91eab6aadd6a8d5a17bb8d31b324833a51967ae61920c452bb

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.5m
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e85ba17ff93a0cf6afd39b9a0ad56ca7321db4f1eb90d2034d3b0ecd79be47b
MD5 65473bb1258437d1e7ffa8c4c0a9cddc
BLAKE2b-256 d6d064a337d3fadf7bee37c699f8574b038b8b0207f5815a322eecd52c65417a

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 438.9 kB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 4dd05cbc497210928ae3d4d6194561985263c879c3554e9f1823a0fa43d35746
MD5 bcccb560eb147fb0bb2ea037acb8d8a3
BLAKE2b-256 5112eaad19f16bb84431b3cdfe1d55365171faac3d15d68e3a016765d91992b5

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 2.7mu
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ec7e4cd54f5ff3a889b90f24b33da1fa9fe3f78d17348965678d9503de1e4a49
MD5 fa7554000513f84e5a21a8b3c8b7efac
BLAKE2b-256 a868627a2f02233aa7c26590336e92c7859d196ca0e870d0875041d6ef3df516

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 2.7m
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 323500d349d8d91ce2662de41212e8eb1845c68dbf5d4f215ca1e94c7f20723b
MD5 8e36a467f21164472ce88eb83c13b34c
BLAKE2b-256 57b34af0dac6d9536905c3bc5427d7e6fbd6bd371725b2e4be44dfbdc44683f3

See more details on using hashes here.

File details

Details for the file torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 438.1 kB
  • Tags: CPython 2.7m, macOS 10.7+ x86-64
  • Uploaded using 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

File hashes

Hashes for torchvision-0.5.0-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 35e9483858cf8a38debc647c74741605c5c12448d314aa96961082380aadf7e5
MD5 00ea3293320e42212e7d807b5b0ab32c
BLAKE2b-256 53251f44c14f73c32bbecebc3f2b31845ed05ecc55cb5bcce359bbd9fe4bcb3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page