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.post2-cp37-cp37m-macosx_10_9_x86_64.whl (631.9 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

torchvision-0.4.1.post2-cp36-cp36m-macosx_10_7_x86_64.whl (631.9 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

torchvision-0.4.1.post2-cp35-cp35m-macosx_10_6_x86_64.whl (631.9 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

torchvision-0.4.1.post2-cp27-cp27m-macosx_10_7_x86_64.whl (633.3 kB view details)

Uploaded CPython 2.7mmacOS 10.7+ x86-64

File details

Details for the file torchvision-0.4.1.post2-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: torchvision-0.4.1.post2-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 631.9 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for torchvision-0.4.1.post2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5db49b6ec5a30e270e7eca176bf8c52b10f9356fda2f798610f8822392dabfd4
MD5 2a7591d258039aa3b4c0a82e61019a25
BLAKE2b-256 4b7541226e77b841258fff7b05404d709b5f67795ba601e09345d97db864b9d2

See more details on using hashes here.

File details

Details for the file torchvision-0.4.1.post2-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: torchvision-0.4.1.post2-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 631.9 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for torchvision-0.4.1.post2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ee8ab78e9f76a61d6a15c2829e0c26cdd5150b1b068806cc3a48af9d9f6b3f32
MD5 d6fa641ff42ffa7d50f988e210042315
BLAKE2b-256 6bdda1f9ba88252ebd44d69ad758bdd552529afa62e64ee1636f7592e785843a

See more details on using hashes here.

File details

Details for the file torchvision-0.4.1.post2-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: torchvision-0.4.1.post2-cp35-cp35m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 631.9 kB
  • Tags: CPython 3.5m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for torchvision-0.4.1.post2-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 9421e453f0cfeefc62aa02d60df6b8681f21da0e4fc5583439de1ae97b1adab8
MD5 bb65fb5bf587a529ad93ec605398871a
BLAKE2b-256 880c659c4acb007ec77ff7d36646df52399e0f433afc3ae0b5e03618063e0ea8

See more details on using hashes here.

File details

Details for the file torchvision-0.4.1.post2-cp27-cp27m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: torchvision-0.4.1.post2-cp27-cp27m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 633.3 kB
  • Tags: CPython 2.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

File hashes

Hashes for torchvision-0.4.1.post2-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 fdc1800c4e7e2d62e73a92101b68fddd1f41bb1f5d6d175a260b4f8e299e11cd
MD5 ad53739c98779fbf89c4bcb7703c4261
BLAKE2b-256 cf1349ad91d2fe8e86f718a1681400c217a0eb70d88041554a2285f19e565871

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page