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

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

Uploaded CPython 3.7m

torchvision-0.4.2-cp37-cp37m-macosx_10_7_x86_64.whl (641.6 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

torchvision-0.4.2-cp36-cp36m-manylinux1_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.6m

torchvision-0.4.2-cp36-cp36m-macosx_10_7_x86_64.whl (641.6 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

torchvision-0.4.2-cp35-cp35m-manylinux1_x86_64.whl (10.1 MB view details)

Uploaded CPython 3.5m

torchvision-0.4.2-cp35-cp35m-macosx_10_6_x86_64.whl (641.6 kB view details)

Uploaded CPython 3.5m macOS 10.6+ x86-64

torchvision-0.4.2-cp27-cp27mu-manylinux1_x86_64.whl (10.1 MB view details)

Uploaded CPython 2.7mu

torchvision-0.4.2-cp27-cp27m-manylinux1_x86_64.whl (10.1 MB view details)

Uploaded CPython 2.7m

torchvision-0.4.2-cp27-cp27m-macosx_10_7_x86_64.whl (643.1 kB view details)

Uploaded CPython 2.7m macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.2 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.4.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 276a385f2f5fe484bf08467b5d081d9144b97eb458ba5b4a11e4640389e53149
MD5 6217770edb315b17c3eb5dd8cac80fe8
BLAKE2b-256 74eed872c12ea508f9cca4cf0d7b91fc5a5e476cec77628a66795ec5a585a67f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 641.6 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.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.4.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dca4aadc12a123730957b501f9c5c2870d2f6727a2c28552cb7907b68b0ea10c
MD5 db7a86fb1f96996684906c7de2c4702c
BLAKE2b-256 fa710e76ba50c8c9aeb8349d827d02278c1b5eb4da9cdc17ca26b5bd47ec034a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.2 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.4.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 66deba9c577e36f4f071decdd894bf7ba794ac133dae64b3fd02fc3f0c6b989d
MD5 d7ac4887e8fa5a35420b4d65315a7045
BLAKE2b-256 9be22b1f88a363ae37b2ba52cfb785ddfb3dd5f7e7ec9459e96fd8299b84ae39

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 641.6 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.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.4.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 7a458330e4efcd66f9f70127ab21fcf8cfea84acda8e707322fd2843aa6dd396
MD5 71626a92e7780e882ef4d3923346e937
BLAKE2b-256 c18c53a88b9a18d8edb33019519f9595bfd5add2ff5aeba19e7402b950906edf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.1 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.4.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0f8245d6378acc86917f58492675f93df5279abae8bc5f832e3510722191f6c9
MD5 2e05a715663b34628265034e930b984d
BLAKE2b-256 920224e322f5e4a07dd41e52854519128569da15116179a47deaaba860ab1a26

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 641.6 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.4.2-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 2553405b9afe3cedb410873b9877eb18b1526f8b01cb7c2747e51b69a936e0b5
MD5 ad49c436ddec3c853f43fe0591918e59
BLAKE2b-256 9ee4447f3bf40c913a75c7ead96c38d1a0e1b4cf2c081bfee3628bbc09d9cf47

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.1 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.4.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1ad7593d94f6612ccb84a59467f0d10cdc213fb3e2bb91f1e773eb844787fa4c
MD5 842897b61061f4aa6f512638f4951640
BLAKE2b-256 2ed8468c76bca1f06660f5eb5101d9d0c767bdc7fe1a8ffcaaf084d4d310cdcc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.1 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.4.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8ff715c2323d9eca89126824ebfa74b282a95d6f64a4743fbe9b738d2de21c77
MD5 c953c3c612a4861bdb4268a13e6fe5a6
BLAKE2b-256 613f445ef4c979aca92ef4b4e538d44a0d30cf38b20d21243e66f3ca50f4222b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: torchvision-0.4.2-cp27-cp27m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 643.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.4.2-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dda25ce304978bba19e6543f7dcfee4f37d2f128ec83d4ab0c7e8f991d64865f
MD5 db8d9437453bfae2f141e4d01e0f938d
BLAKE2b-256 ff839f0f974903545e6c24d9efdc23371f363d010c90601035d8d96d78c05e10

See more details on using hashes here.

Provenance

Supported by

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