Skip to main content

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.

Release files for torchvision 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for torchvision 0.4.2
File
torchvision-0.4.2-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
torchvision-0.4.2-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
torchvision-0.4.2-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
torchvision-0.4.2-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details
torchvision-0.4.2-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details
torchvision-0.4.2-cp35-cp35m-macosx_10_6_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ x86-64 Details
torchvision-0.4.2-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.2-cp27-cp27m-manylinux1_x86_64.whl CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 Details
torchvision-0.4.2-cp27-cp27m-macosx_10_7_x86_64.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.7+ x86-64 Details

Total release size: 53.3 MB

Release files / torchvision-0.4.2-cp37-cp37m-manylinux1_x86_64.whl

Download URL torchvision-0.4.2-cp37-cp37m-manylinux1_x86_64.whl
Size 10.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
276a385f2f5fe484bf08467b5d081d9144b97eb458ba5b4a11e4640389e53149
BLAKE2b-256 checksum
How to use checksums
74eed872c12ea508f9cca4cf0d7b91fc5a5e476cec77628a66795ec5a585a67f
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.4.2-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL torchvision-0.4.2-cp37-cp37m-macosx_10_7_x86_64.whl
Size 641.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
dca4aadc12a123730957b501f9c5c2870d2f6727a2c28552cb7907b68b0ea10c
BLAKE2b-256 checksum
How to use checksums
fa710e76ba50c8c9aeb8349d827d02278c1b5eb4da9cdc17ca26b5bd47ec034a
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.4.2-cp36-cp36m-manylinux1_x86_64.whl

Download URL torchvision-0.4.2-cp36-cp36m-manylinux1_x86_64.whl
Size 10.2 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
66deba9c577e36f4f071decdd894bf7ba794ac133dae64b3fd02fc3f0c6b989d
BLAKE2b-256 checksum
How to use checksums
9be22b1f88a363ae37b2ba52cfb785ddfb3dd5f7e7ec9459e96fd8299b84ae39
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.4.2-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL torchvision-0.4.2-cp36-cp36m-macosx_10_7_x86_64.whl
Size 641.6 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
7a458330e4efcd66f9f70127ab21fcf8cfea84acda8e707322fd2843aa6dd396
BLAKE2b-256 checksum
How to use checksums
c18c53a88b9a18d8edb33019519f9595bfd5add2ff5aeba19e7402b950906edf
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.4.2-cp35-cp35m-manylinux1_x86_64.whl

Download URL torchvision-0.4.2-cp35-cp35m-manylinux1_x86_64.whl
Size 10.1 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0f8245d6378acc86917f58492675f93df5279abae8bc5f832e3510722191f6c9
BLAKE2b-256 checksum
How to use checksums
920224e322f5e4a07dd41e52854519128569da15116179a47deaaba860ab1a26
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.4.2-cp35-cp35m-macosx_10_6_x86_64.whl

Download URL torchvision-0.4.2-cp35-cp35m-macosx_10_6_x86_64.whl
Size 641.6 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ x86-64
SHA-256 checksum
How to use checksums
2553405b9afe3cedb410873b9877eb18b1526f8b01cb7c2747e51b69a936e0b5
BLAKE2b-256 checksum
How to use checksums
9ee4447f3bf40c913a75c7ead96c38d1a0e1b4cf2c081bfee3628bbc09d9cf47
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.4.2-cp27-cp27mu-manylinux1_x86_64.whl

Download URL torchvision-0.4.2-cp27-cp27mu-manylinux1_x86_64.whl
Size 10.1 MB
Tags CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
1ad7593d94f6612ccb84a59467f0d10cdc213fb3e2bb91f1e773eb844787fa4c
BLAKE2b-256 checksum
How to use checksums
2ed8468c76bca1f06660f5eb5101d9d0c767bdc7fe1a8ffcaaf084d4d310cdcc
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.4.2-cp27-cp27m-manylinux1_x86_64.whl

Download URL torchvision-0.4.2-cp27-cp27m-manylinux1_x86_64.whl
Size 10.1 MB
Tags CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
8ff715c2323d9eca89126824ebfa74b282a95d6f64a4743fbe9b738d2de21c77
BLAKE2b-256 checksum
How to use checksums
613f445ef4c979aca92ef4b4e538d44a0d30cf38b20d21243e66f3ca50f4222b
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.4.2-cp27-cp27m-macosx_10_7_x86_64.whl

Download URL torchvision-0.4.2-cp27-cp27m-macosx_10_7_x86_64.whl
Size 643.1 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
dda25ce304978bba19e6543f7dcfee4f37d2f128ec83d4ab0c7e8f991d64865f
BLAKE2b-256 checksum
How to use checksums
ff839f0f974903545e6c24d9efdc23371f363d010c90601035d8d96d78c05e10
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 history Release notifications | RSS feed

0.9.1

16 release files

0.8.2

8 release files

0.8.1

6 release files

0.8.0

6 release files

0.7.0

6 release files

0.6.1

8 release files

0.6.0

8 release files

0.5.0

15 release files

This release

0.4.2 This release

9 release files

0.4.1

12 release files

0.4.0

9 release files

0.3.0

12 release files

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page