Skip to content

Commit

Permalink
Merge pull request pytorch#1060 from guyang3532/fix_torchvision_tutor…
Browse files Browse the repository at this point in the history
…ial_win

Modify torchvision_tutorial doc for windows
  • Loading branch information
ezyang committed Jul 9, 2020
2 parents 67f76d3 + 958aa33 commit c83c23d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions intermediate_source/torchvision_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ If your model returns the above methods, they will make it work for both
training and evaluation, and will use the evaluation scripts from
``pycocotools``.

.. note ::
For Windows, please install ``pycocotools`` from `gautamchitnis <https://github.com/gautamchitnis/cocoapi>`__ with command
``pip install git+https://github.com/gautamchitnis/cocoapi.git@cocodataset-master#subdirectory=PythonAPI``
One note on the ``labels``. The model considers class ``0`` as background. If your dataset does not contain the background class, you should not have ``0`` in your ``labels``. For example, assuming you have just two classes, *cat* and *dog*, you can define ``1`` (not ``0``) to represent *cats* and ``2`` to represent *dogs*. So, for instance, if one of the images has booth classes, your ``labels`` tensor should look like ``[1,2]``.

Additionally, if you want to use aspect ratio grouping during training
Expand Down

0 comments on commit c83c23d

Please sign in to comment.