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.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.

Project details


Release history Release notifications | RSS feed

This version

0.4.0

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.4.0-cp37-cp37m-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.7m

torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl (582.1 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.6m

torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl (582.1 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.5m

torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl (582.2 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

torchvision-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 2.7mu

torchvision-0.4.0-cp27-cp27m-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 2.7m

torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl (583.7 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8114c33b736ee430496eef4fe03b25be8b939b2abd2a968558737bb9aed1928b
MD5 93132e93f38233eb42754062745d7cca
BLAKE2b-256 51832d77d040e34bd8f70dcb4770f7eb7d0aa71e07738abf6831be863ade00db

See more details on using hashes here.

File details

Details for the file torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e00de7571d83f968f5aea7a59e84e3262669acef0a077ce4bd705eca2df68167
MD5 5e498b8a72c9fd4e26dfd8679c140f8a
BLAKE2b-256 be9d01afb6f6eccde291df2ec254eab7947cd9251cd02d4fac2968fd49e8af73

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d7939f2ca401de3067a30b6f4dcef63d13d24a4cd1ddc2d3a9af3413ce658d03
MD5 459928580c0ed6618b4b5dc8cff7e7f0
BLAKE2b-256 06e6a564eba563f7ff53aa7318ff6aaa5bd8385cbda39ed55ba471e95af27d19

See more details on using hashes here.

File details

Details for the file torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 afff8e987564192bc7f139d8b089541d4471ad6fc99e977e8bc8dbb4e0873041
MD5 f84d25098ebe3b3ac78d99bb0b57fd94
BLAKE2b-256 55b0ac86b0b393ec5e73db2f27660f242404dbf9c9449d79a87ba023e7f3cb0e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 904ef213594672f2ed7fafa3ab010cbf2a4704a951a7bf221cf36b3d2e3acd62
MD5 ca0bd0bb056b11cb979c2bf4329e66a1
BLAKE2b-256 1cf6e927f7db4f422af037ca3f80b3391e6224ee3ee86473ea05028b2b026f82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 582.2 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.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for torchvision-0.4.0-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 6fff5a31d50de3a59dcceda2a48de9df33a5f43357dc3e0da0ffbb97699aec52
MD5 69cdf8e8c9812d69634038c280081256
BLAKE2b-256 ebc14e7ee6376da798ba8a32bd28b1660c7c88dea93e0ecc3a66d2a24f2c8c14

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3a8e9403252fefdf6e8f9993ae111d28eb4ad1e73f696f03de485d7f77d88067
MD5 a31bf63fadfab2193b22f7e8f75b45d0
BLAKE2b-256 5a4fdec9ae555a91f87586fd9b1e00b9684f08b94027df29b9745bdcdfa1ce03

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 740b3718470aa4ec0b389df876eb25117df1952dd2e8105b7828a02aa5bce73b
MD5 2ac81e1ecc541ac130ca0a7e6262693a
BLAKE2b-256 09f14640b643fc54f3eea7b1f1e406cee7907c41f1dc113375d2298416340f82

See more details on using hashes here.

File details

Details for the file torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

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

File hashes

Hashes for torchvision-0.4.0-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 d8c2402704ce8ef8e87e4922160388c7ca010ef27700082014d6bd694cf1cc51
MD5 4f0ece1d9f120eaacbd1f84af585b8de
BLAKE2b-256 0a1a8cf4c4481f4c2b006766e8ba79b57fe82e0ebd39b7a46c2d448717fc8e5a

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