Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  dvc git github
dd35cf21bf
modified training to work with interpretability-guided architecture modifications
4 months ago
508bc1dc8d
CXX_STANDARD 14 -> 17 (#7608)
2 years ago
0d8084811e
GPU jpeg decoder: add batch support and hardware decoding (#8496)
1 year ago
5367021110
Remove include Python.h (#8413)
1 year ago
923eb03204
Deprecate video decoding and encoding (#8997)
4 months ago
a8a9f2d749
Rename cpp example README.rst to README.md (#8467)
1 year ago
923eb03204
Deprecate video decoding and encoding (#8997)
4 months ago
ios
508bc1dc8d
CXX_STANDARD 14 -> 17 (#7608)
2 years ago
29066f5d2f
Fix post-build-script (#8982)
4 months ago
dd35cf21bf
modified training to work with interpretability-guided architecture modifications
4 months ago
bd7b54d8f4
Add an OS-independent script for updating the workflow files (#8970)
5 months ago
2ae6a6d546
Update classify_prs notebook (#8383)
1 year ago
ef4718ad85
A temporary fix to windows unittests failing in `INaturalistTestCase`. (#9007)
4 months ago
ef4718ad85
A temporary fix to windows unittests failing in `INaturalistTestCase`. (#9007)
4 months ago
fc83b28038
Add objc clang format (#7677)
2 years ago
dd35cf21bf
modified training to work with interpretability-guided architecture modifications
4 months ago
8d4e879315
Add new entry to .git-blame-ignore-revs (#7781)
2 years ago
4125d3a02b
kill CircleCI (#7611)
2 years ago
3075d7dfeb
Update .gitignore (#8757)
8 months ago
fc83b28038
Add objc clang format (#7677)
2 years ago
678300d0e3
Adding BibTeX entry for TorchVision (#6690)
2 years ago
9e78fe29e0
Add AVIF decoder (Part 1- this is not public or available yet) (#8596)
11 months ago
b2e95657cd
Create CODE_OF_CONDUCT.md
5 years ago
e4d2d1ad03
Add GIF decoder (#8406)
1 year ago
7dc5e5bd60
Fix typos and grammar errors (#7065)
2 years ago
b3e33b7ba0
Create LICENSE
8 years ago
b1333dd767
migrate README to markdown (#7565)
2 years ago
7eb09df390
[Release 2.5] Update compatibility matrix (#8644)
11 months ago
035d99f1e7
Add video models to torchhub (#7083)
2 years ago
2ae6a6d546
Update classify_prs notebook (#8383)
1 year ago
48f01de201
Ignore mypy for maxvit (#8791)
8 months ago
78ffda7eb9
drop support for Python 3.7 (#7110)
2 years ago
2ab937a07d
Change default pytest traceback from native to short (#7810)
2 years ago
db3ead1656
Ignore some flake8 codes (#7462)
2 years ago
7b2addfced
Support specifying a torch range (#8936)
5 months ago
c8d928bb55
Bump version number in main (#8796)
8 months ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

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.5 0.20 >=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}}
}
Tip!

Press p or to see the previous file or, n or to see the next file

About

No description

Collaborators 1

Comments

Loading...