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

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.1-cp37-cp37m-win_amd64.whl (964.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

torchvision-0.4.1-cp37-cp37m-manylinux1_x86_64.whl (10.1 MB view hashes)

Uploaded CPython 3.7m

torchvision-0.4.1-cp37-cp37m-macosx_10_9_x86_64.whl (631.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

torchvision-0.4.1-cp36-cp36m-win_amd64.whl (964.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

torchvision-0.4.1-cp36-cp36m-manylinux1_x86_64.whl (10.1 MB view hashes)

Uploaded CPython 3.6m

torchvision-0.4.1-cp36-cp36m-macosx_10_7_x86_64.whl (631.8 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

torchvision-0.4.1-cp35-cp35m-win_amd64.whl (964.6 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

torchvision-0.4.1-cp35-cp35m-manylinux1_x86_64.whl (10.1 MB view hashes)

Uploaded CPython 3.5m

torchvision-0.4.1-cp35-cp35m-macosx_10_6_x86_64.whl (631.8 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ x86-64

torchvision-0.4.1-cp27-cp27mu-manylinux1_x86_64.whl (10.1 MB view hashes)

Uploaded CPython 2.7mu

torchvision-0.4.1-cp27-cp27m-manylinux1_x86_64.whl (10.1 MB view hashes)

Uploaded CPython 2.7m

torchvision-0.4.1-cp27-cp27m-macosx_10_7_x86_64.whl (633.2 kB view hashes)

Uploaded CPython 2.7m macOS 10.7+ x86-64

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