vision – pytorch
计算机视觉专用的数据集、变换和模型
关键指标一览
主题标签
README 详细介绍
torchvision
<img src="https://pepy.tech/badge/torchvision" alt="total torchvision downloads" class="ra0-md-img" loading="lazy" />
<img src="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" alt="documentation" class="ra0-md-img" loading="lazy" />
The torchvision package consists of popular datasets, model architectures, and common image transformations for computer
vision.
Installation
Please refer to the [official
instructions](https://pytorch.org/get-started/locally/) to install the stable
versions of torch and torchvision on your system.
To build source, refer to our [contributing
page](https://github.com/pytorch/vision/blob/main/CONTRIBUTING.md#development-installation).
The following is the corresponding torchvision versions and supported Python
versions.
torch |
torchvision |
Python |
|---|---|---|
main / nightly |
main / nightly |
>=3.10, =3.10, =3.10, =3.10, =3.10, <=3.14 |
older versions
torch |
torchvision |
Python |
|---|---|---|
2.9 |
0.24 |
>=3.10, =3.9, =3.9, =3.9, =3.9, =3.8, =3.8, =3.8, =3.8, =3.8, =3.7.2, =3.7, =3.7, =3.6, =3.6, =3.6, =3.6, =3.6, =3.5, =3.5, =3.5, =3.5, =3.5, <=3.7 |
=3.5, <=3.7 |
Image Backends
Torchvision currently supports the following image backends:
- torch tensors
- PIL images:
- Pillow
- Pillow-SIMD - a much faster drop-in replacement for Pillow with SIMD.
Read more in in our docs.
Documentation
You can find the API documentation on the pytorch website:
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}}
}