Skip to main content

torchvision

total torchvision downloads documentation

The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.

Installation

Please refer to the official instructions to install the stable versions of torch and torchvision on your system.

To build source, refer to our contributing page.

The following is the corresponding torchvision versions and supported Python versions.

torch torchvision Python
main / nightly main / nightly >=3.9, <=3.12
2.4 0.19 >=3.8, <=3.12
2.3 0.18 >=3.8, <=3.12
2.2 0.17 >=3.8, <=3.11
2.1 0.16 >=3.8, <=3.11
2.0 0.15 >=3.8, <=3.11
older versions
torch torchvision Python
1.13 0.14 >=3.7.2, <=3.10
1.12 0.13 >=3.7, <=3.10
1.11 0.12 >=3.7, <=3.10
1.10 0.11 >=3.6, <=3.9
1.9 0.10 >=3.6, <=3.9
1.8 0.9 >=3.6, <=3.9
1.7 0.8 >=3.6, <=3.9
1.6 0.7 >=3.6, <=3.8
1.5 0.6 >=3.5, <=3.8
1.4 0.5 ==2.7, >=3.5, <=3.8
1.3 0.4.2 / 0.4.3 ==2.7, >=3.5, <=3.7
1.2 0.4.1 ==2.7, >=3.5, <=3.7
1.1 0.3 ==2.7, >=3.5, <=3.7
<=1.0 0.2 ==2.7, >=3.5, <=3.7

Image Backends

Torchvision currently supports the following image backends:

  • torch tensors
  • PIL images:

Read more in in our docs.

[UNSTABLE] Video Backend

Torchvision currently supports the following video backends:

  • pyav (default) - Pythonic binding for ffmpeg libraries.
  • video_reader - This needs ffmpeg to be installed and torchvision to be built from source. There shouldn't be any conflicting version of ffmpeg installed. Currently, this is only supported on Linux.
conda install -c conda-forge 'ffmpeg<4.3'
python setup.py install

Using the models on C++

Refer to example/cpp.

DISCLAIMER: the libtorchvision library includes the torchvision custom ops as well as most of the C++ torchvision APIs. Those APIs do not come with any backward-compatibility guarantees and may change from one version to the next. Only the Python APIs are stable and with backward-compatibility guarantees. So, if you need stability within a C++ environment, your best bet is to export the Python APIs via torchscript.

Documentation

You can find the API documentation on the pytorch website: https://pytorch.org/vision/stable/index.html

Contributing

See the CONTRIBUTING file for how to help out.

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!

Pre-trained Model License

The pre-trained models provided in this library may have their own licenses or terms and conditions derived from the dataset used for training. It is your responsibility to determine whether you have permission to use the models for your use case.

More specifically, SWAG models are released under the CC-BY-NC 4.0 license. See SWAG LICENSE for additional details.

Citing TorchVision

If you find TorchVision useful in your work, please consider citing the following BibTeX entry:

@software{torchvision2016,
    title        = {TorchVision: PyTorch's Computer Vision library},
    author       = {TorchVision maintainers and contributors},
    year         = 2016,
    journal      = {GitHub repository},
    publisher    = {GitHub},
    howpublished = {\url{https://github.com/pytorch/vision}}
}

Release files for torchvision 0.20.0

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.20.0
File
torchvision-0.20.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
torchvision-0.20.0-cp312-cp312-manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-cp312-cp312-manylinux1_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.5+ x86-64 Details
torchvision-0.20.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
torchvision-0.20.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
torchvision-0.20.0-cp311-cp311-manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-cp311-cp311-manylinux1_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.5+ x86-64 Details
torchvision-0.20.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
torchvision-0.20.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
torchvision-0.20.0-cp310-cp310-manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-cp310-cp310-manylinux1_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.5+ x86-64 Details
torchvision-0.20.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
torchvision-0.20.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
torchvision-0.20.0-cp39-cp39-manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-cp39-cp39-manylinux1_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64 Details
torchvision-0.20.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details
torchvision-0.20.0-1-cp312-cp312-manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-1-cp311-cp311-manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-1-cp310-cp310-manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
torchvision-0.20.0-1-cp39-cp39-manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details

Total release size: 154.4 MB

Release files / torchvision-0.20.0-cp312-cp312-win_amd64.whl

Download URL torchvision-0.20.0-cp312-cp312-win_amd64.whl
Size 1.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
bb0da0950d2034a0412c251a3a9117ff9612157f45177d37ba1b20b472c0864b
BLAKE2b-256 checksum
How to use checksums
9eb4b0247c2a953322e1ac3fe4c31aad4a39530ae5f60128f3cdb760136386e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp312-cp312-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-cp312-cp312-manylinux2014_aarch64.whl
Size 19.9 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
a78c99ebe1a62857b68e97ff9417b92f299f2ee61f009491a114ddad050c493d
BLAKE2b-256 checksum
How to use checksums
0b5d6e34beaeb16f4c106d727bb366b1e9e2cb6b97b5e790754f74d766c3650b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp312-cp312-manylinux1_x86_64.whl

Download URL torchvision-0.20.0-cp312-cp312-manylinux1_x86_64.whl
Size 7.2 MB
Tags CPython 3.12 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c8f3bc399d9c3e4ba05d74ca6dd5e63fed08ad5c5b302a946c8fcaa56216220f
BLAKE2b-256 checksum
How to use checksums
6c4b0627814c10b70b4032b68b454ada67cdec9c28c1d8d0ff54aad66602df9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL torchvision-0.20.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ac0edba534fb071b2b03a2fd5cbbf9b7c259896d17a1d0d830b3c5b7dfae0782
BLAKE2b-256 checksum
How to use checksums
6a67a2b3d9b0804c6d615a228057a2159a724c5fd8a0637414318815c01db5de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp311-cp311-win_amd64.whl

Download URL torchvision-0.20.0-cp311-cp311-win_amd64.whl
Size 1.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1fd045757335d34969d176fc5688b643d201860cb45b48ce8d5d8fb90868f746
BLAKE2b-256 checksum
How to use checksums
b21bb8eb51f87626c125cfa81f07488ab277e68e1c021c6cf2750d779eb61358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp311-cp311-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-cp311-cp311-manylinux2014_aarch64.whl
Size 19.9 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
d80eb740810804bac4b8e6b6411946ab286a1ee1d731db36af2f885333254802
BLAKE2b-256 checksum
How to use checksums
7553461d80e62c30184057a164a24936498be3a89c7ecb0df5c0022395b22f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp311-cp311-manylinux1_x86_64.whl

Download URL torchvision-0.20.0-cp311-cp311-manylinux1_x86_64.whl
Size 7.2 MB
Tags CPython 3.11 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
b64d9f83cf201ebda4f6b03533e4918fa0b4223b28b0ee3cbede15b8174c7cbd
BLAKE2b-256 checksum
How to use checksums
abd8bba984473667bc0467110802dc1cfeba158b895327dea35094c21400c0ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL torchvision-0.20.0-cp311-cp311-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a15de6266a36bcd10d89f6f3d7ba4e2dd567a7a0add616ebc6e65aea20790e5d
BLAKE2b-256 checksum
How to use checksums
6040619a1332a5be516abd801bf0053790fe88f6d1b1757d55dc52743490583c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp310-cp310-win_amd64.whl

Download URL torchvision-0.20.0-cp310-cp310-win_amd64.whl
Size 1.6 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a7d46cf096007b7e8df1bddad7375427664a064bc05d9cbff5d506b73c1ab8ca
BLAKE2b-256 checksum
How to use checksums
29fbcab5ba21b6f3dc082f8bfa1a0d9eda17c643cd410f8514b56ced46cc0470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp310-cp310-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-cp310-cp310-manylinux2014_aarch64.whl
Size 19.9 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
09080359be90314fc4fdd64b11a4d231c1999018f19d58bf7764f5e15f8e9fb3
BLAKE2b-256 checksum
How to use checksums
8225b81da3d268c521252ab0cbe60e7a5be244f18dec86277342a3a82e64b496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp310-cp310-manylinux1_x86_64.whl

Download URL torchvision-0.20.0-cp310-cp310-manylinux1_x86_64.whl
Size 7.2 MB
Tags CPython 3.10 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
9c18208575d60b96e7d53a09c453781afea4a81487c9ebc501dfc2bc88daa308
BLAKE2b-256 checksum
How to use checksums
194941359c7c1493beefa5cc3c3e4ff036ebc607635574bf6868ac9aae23c1ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL torchvision-0.20.0-cp310-cp310-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f164d545965186ffd66014e34a966706d12c84198302dd46748cae45984609a4
BLAKE2b-256 checksum
How to use checksums
e95471eb77dd9e0c43300c69e092e6683c1e02907024cef2992601ecc00d94a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp39-cp39-win_amd64.whl

Download URL torchvision-0.20.0-cp39-cp39-win_amd64.whl
Size 1.6 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
47d0751aeaa7057ee6a5973d35e7acad3ad7c17b8e57a2c4304d13e001e330ae
BLAKE2b-256 checksum
How to use checksums
05ab336f2e3285dfed7b336c651ff80d22f0c44d6d267f79306cdb3cebf28b8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp39-cp39-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-cp39-cp39-manylinux2014_aarch64.whl
Size 7.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
1ab53244701eab897e5c65026ba178c0abbc5bd08629c3d20f737d618e9e5a37
BLAKE2b-256 checksum
How to use checksums
9980966be8930c96b577a0b016d8f76ee92e451cc8a58e429a9c1d7cbf6490e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp39-cp39-manylinux1_x86_64.whl

Download URL torchvision-0.20.0-cp39-cp39-manylinux1_x86_64.whl
Size 7.2 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
95d8c817681a4c2156f66ef83cafc4c5c4b97e4694956d54d7dc554804ee510d
BLAKE2b-256 checksum
How to use checksums
070761a7905f6543ce130538f7efb7198e9fb5f3839465757b30c7d3f20adee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL torchvision-0.20.0-cp39-cp39-macosx_11_0_arm64.whl
Size 1.8 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6a70c81ea5068dd7b1e340ebeabb65364576d8b9819454cfdf812290cf03e45a
BLAKE2b-256 checksum
How to use checksums
6ec5369c031631d0829e5b8630ee238b5774ab9de365bb474174501d71eaf9ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-1-cp312-cp312-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-1-cp312-cp312-manylinux2014_aarch64.whl
Size 14.3 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
f8d0213489acfb138369f2455a6893880c194a8195e381c19f872b277f2654c3
BLAKE2b-256 checksum
How to use checksums
a893a01ea3787380af4095f1e00d3e1edcf4a442f3e8564a25bd267ae705fdbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-1-cp311-cp311-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-1-cp311-cp311-manylinux2014_aarch64.whl
Size 14.3 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
55d7f43ef912ebc4da4bba73a0bbf387d38a6be9cd521679c0f4056f9564b698
BLAKE2b-256 checksum
How to use checksums
07575b008609654297564e95dea905f63f8986f1748b959c00f0260af4326f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-1-cp310-cp310-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-1-cp310-cp310-manylinux2014_aarch64.whl
Size 14.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
e084f50ecbdbe7a9cc2fc51ea0367ae35fde46e84a964bf4046cb1c7feb7e3e6
BLAKE2b-256 checksum
How to use checksums
9de6225b1b2ac1aed9ab8682b1d979c165c9ee5ef5642fc488e8b6810f2b7155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / torchvision-0.20.0-1-cp39-cp39-manylinux2014_aarch64.whl

Download URL torchvision-0.20.0-1-cp39-cp39-manylinux2014_aarch64.whl
Size 1.9 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8d6cea8ab0bf72ecb71b07cd0fe836eacf5a5fa98f6629d2261212e90977b963
BLAKE2b-256 checksum
How to use checksums
40cda2fae84e61cee28a9db55fefe8e84ad6fa85997318c89d5ca44fb2e48e7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.20.0 This release

20 release files

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

0.4.2

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