Skip to content

Torchvision PR in case the CI doesn't work. #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
599 changes: 599 additions & 0 deletions docs/1.7.0/torchvision/_modules/index.html

Large diffs are not rendered by default.

629 changes: 629 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision.html

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/celeba.html

Large diffs are not rendered by default.

721 changes: 721 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/cifar.html

Large diffs are not rendered by default.

768 changes: 768 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/cityscapes.html

Large diffs are not rendered by default.

690 changes: 690 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/coco.html

Large diffs are not rendered by default.

618 changes: 618 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/fakedata.html

Large diffs are not rendered by default.

719 changes: 719 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/flickr.html

Large diffs are not rendered by default.

782 changes: 782 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/folder.html

Large diffs are not rendered by default.

682 changes: 682 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/hmdb51.html

Large diffs are not rendered by default.

773 changes: 773 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/imagenet.html

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/kinetics.html

Large diffs are not rendered by default.

715 changes: 715 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/lsun.html

Large diffs are not rendered by default.

1,048 changes: 1,048 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/mnist.html

Large diffs are not rendered by default.

650 changes: 650 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/omniglot.html

Large diffs are not rendered by default.

764 changes: 764 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/phototour.html

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/places365.html

Large diffs are not rendered by default.

679 changes: 679 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/sbd.html

Large diffs are not rendered by default.

666 changes: 666 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/sbu.html

Large diffs are not rendered by default.

738 changes: 738 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/stl10.html

Large diffs are not rendered by default.

673 changes: 673 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/svhn.html

Large diffs are not rendered by default.

659 changes: 659 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/ucf101.html

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/usps.html

Large diffs are not rendered by default.

799 changes: 799 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/datasets/voc.html

Large diffs are not rendered by default.

758 changes: 758 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/io/image.html

Large diffs are not rendered by default.

916 changes: 916 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/io/video.html

Large diffs are not rendered by default.

617 changes: 617 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/alexnet.html

Large diffs are not rendered by default.

831 changes: 831 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/densenet.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

846 changes: 846 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/googlenet.html

Large diffs are not rendered by default.

993 changes: 993 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/inception.html

Large diffs are not rendered by default.

809 changes: 809 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/mnasnet.html

Large diffs are not rendered by default.

740 changes: 740 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/mobilenet.html

Large diffs are not rendered by default.

905 changes: 905 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/resnet.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

760 changes: 760 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/shufflenetv2.html

Large diffs are not rendered by default.

689 changes: 689 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/squeezenet.html

Large diffs are not rendered by default.

735 changes: 735 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/vgg.html

Large diffs are not rendered by default.

893 changes: 893 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/models/video/resnet.html

Large diffs are not rendered by default.

823 changes: 823 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/boxes.html

Large diffs are not rendered by default.

709 changes: 709 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/deform_conv.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

812 changes: 812 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/poolers.html

Large diffs are not rendered by default.

632 changes: 632 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/ps_roi_align.html

Large diffs are not rendered by default.

617 changes: 617 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/ps_roi_pool.html

Large diffs are not rendered by default.

635 changes: 635 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/roi_align.html

Large diffs are not rendered by default.

615 changes: 615 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/ops/roi_pool.html

Large diffs are not rendered by default.

1,602 changes: 1,602 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/transforms/functional.html

Large diffs are not rendered by default.

2,160 changes: 2,160 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/transforms/transforms.html

Large diffs are not rendered by default.

682 changes: 682 additions & 0 deletions docs/1.7.0/torchvision/_modules/torchvision/utils.html

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions docs/1.7.0/torchvision/_sources/datasets.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
torchvision.datasets
====================

All datasets are subclasses of :class:`torch.utils.data.Dataset`
i.e, they have ``__getitem__`` and ``__len__`` methods implemented.
Hence, they can all be passed to a :class:`torch.utils.data.DataLoader`
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
For example: ::

imagenet_data = torchvision.datasets.ImageNet('path/to/imagenet_root/')
data_loader = torch.utils.data.DataLoader(imagenet_data,
batch_size=4,
shuffle=True,
num_workers=args.nThreads)

The following datasets are available:

.. contents:: Datasets
:local:

All the datasets have almost similar API. They all have two common arguments:
``transform`` and ``target_transform`` to transform the input and target respectively.


.. currentmodule:: torchvision.datasets

CelebA
~~~~~~

.. autoclass:: CelebA
:members: __getitem__
:special-members:

CIFAR
~~~~~

.. autoclass:: CIFAR10
:members: __getitem__
:special-members:

.. autoclass:: CIFAR100

Cityscapes
~~~~~~~~~~

.. note ::
Requires Cityscape to be downloaded.

.. autoclass:: Cityscapes
:members: __getitem__
:special-members:

COCO
~~~~

.. note ::
These require the `COCO API to be installed`_

.. _COCO API to be installed: https://github.com/pdollar/coco/tree/master/PythonAPI


Captions
^^^^^^^^

.. autoclass:: CocoCaptions
:members: __getitem__
:special-members:


Detection
^^^^^^^^^

.. autoclass:: CocoDetection
:members: __getitem__
:special-members:

DatasetFolder
~~~~~~~~~~~~~

.. autoclass:: DatasetFolder
:members: __getitem__
:special-members:


EMNIST
~~~~~~

.. autoclass:: EMNIST

FakeData
~~~~~~~~

.. autoclass:: FakeData

Fashion-MNIST
~~~~~~~~~~~~~

.. autoclass:: FashionMNIST

Flickr
~~~~~~

.. autoclass:: Flickr8k
:members: __getitem__
:special-members:

.. autoclass:: Flickr30k
:members: __getitem__
:special-members:

HMDB51
~~~~~~~

.. autoclass:: HMDB51
:members: __getitem__
:special-members:

ImageFolder
~~~~~~~~~~~

.. autoclass:: ImageFolder
:members: __getitem__
:special-members:

ImageNet
~~~~~~~~~~~

.. autoclass:: ImageNet

.. note ::
This requires `scipy` to be installed

Kinetics-400
~~~~~~~~~~~~

.. autoclass:: Kinetics400
:members: __getitem__
:special-members:

KMNIST
~~~~~~~~~~~~~

.. autoclass:: KMNIST

LSUN
~~~~

.. autoclass:: LSUN
:members: __getitem__
:special-members:

MNIST
~~~~~

.. autoclass:: MNIST

Omniglot
~~~~~~

.. autoclass:: Omniglot

PhotoTour
~~~~~~~~~

.. autoclass:: PhotoTour
:members: __getitem__
:special-members:

Places365
~~~~~~~~~

.. autoclass:: Places365
:members: __getitem__
:special-members:

QMNIST
~~~~~~

.. autoclass:: QMNIST

SBD
~~~~~~

.. autoclass:: SBDataset
:members: __getitem__
:special-members:

SBU
~~~

.. autoclass:: SBU
:members: __getitem__
:special-members:

STL10
~~~~~

.. autoclass:: STL10
:members: __getitem__
:special-members:

SVHN
~~~~~

.. autoclass:: SVHN
:members: __getitem__
:special-members:

UCF101
~~~~~~~

.. autoclass:: UCF101
:members: __getitem__
:special-members:

USPS
~~~~~

.. autoclass:: USPS
:members: __getitem__
:special-members:

VOC
~~~~~~

.. autoclass:: VOCSegmentation
:members: __getitem__
:special-members:

.. autoclass:: VOCDetection
:members: __getitem__
:special-members:

54 changes: 54 additions & 0 deletions docs/1.7.0/torchvision/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
torchvision
===========
This library is part of the `PyTorch
<http://pytorch.org/>`_ project. PyTorch is an open source
machine learning framework.

Features described in this documentation are classified by release status:

*Stable:* These features will be maintained long-term and there should generally
be no major performance limitations or gaps in documentation.
We also expect to maintain backwards compatibility (although
breaking changes can happen and notice will be given one release ahead
of time).

*Beta:* Features are tagged as Beta because the API may change based on
user feedback, because the performance needs to improve, or because
coverage across operators is not yet complete. For Beta features, we are
committing to seeing the feature through to the Stable classification.
We are not, however, committing to backwards compatibility.

*Prototype:* These features are typically not available as part of
binary distributions like PyPI or Conda, except sometimes behind run-time
flags, and are at an early stage for feedback and testing.



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

.. toctree::
:maxdepth: 2
:caption: Package Reference

datasets
io
models
ops
transforms
utils

.. automodule:: torchvision
:members:

.. toctree::
:maxdepth: 1
:caption: PyTorch Libraries

PyTorch <https://pytorch.org/docs>
torchaudio <https://pytorch.org/audio>
torchtext <https://pytorch.org/text>
torchvision <https://pytorch.org/vision>
TorchElastic <https://pytorch.org/elastic/>
TorchServe <https://pytorch.org/serve>
PyTorch on XLA Devices <http://pytorch.org/xla/>
72 changes: 72 additions & 0 deletions docs/1.7.0/torchvision/_sources/io.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
torchvision.io
==============

.. currentmodule:: torchvision.io

The :mod:`torchvision.io` package provides functions for performing IO
operations. They are currently specific to reading and writing video and
images.

Video
-----

.. autofunction:: read_video

.. autofunction:: read_video_timestamps

.. autofunction:: write_video


Fine-grained video API
-------------------

In addition to the :mod:`read_video` function, we provide a high-performance
lower-level API for more fine-grained control compared to the :mod:`read_video` function.
It does all this whilst fully supporting torchscript.

.. autoclass:: VideoReader
:members: __next__, get_metadata, set_current_stream, seek


Example of inspecting a video:

.. code:: python

import torchvision
video_path = "path to a test video"
# Constructor allocates memory and a threaded decoder
# instance per video. At the momet it takes two arguments:
# path to the video file, and a wanted stream.
reader = torchvision.io.VideoReader(video_path, "video")

# The information about the video can be retrieved using the
# `get_metadata()` method. It returns a dictionary for every stream, with
# duration and other relevant metadata (often frame rate)
reader_md = reader.get_metadata()

# metadata is structured as a dict of dicts with following structure
# {"stream_type": {"attribute": [attribute per stream]}}
#
# following would print out the list of frame rates for every present video stream
print(reader_md["video"]["fps"])

# we explicitly select the stream we would like to operate on. In
# the constructor we select a default video stream, but
# in practice, we can set whichever stream we would like
video.set_current_stream("video:0")


Image
-----

.. autofunction:: read_image

.. autofunction:: decode_image

.. autofunction:: encode_jpeg

.. autofunction:: write_jpeg

.. autofunction:: encode_png

.. autofunction:: write_png
Loading