Commit d84fee6d authored by youkaichao's avatar youkaichao Committed by Francisco Massa
Browse files

Update usps.py (#1117)

The backslash should be escaped. Currently, [it](https://pytorch.org/docs/master/torchvision/datasets.html#usps) looks bad:
parent 2b73a484
......@@ -9,7 +9,7 @@ from .vision import VisionDataset
class USPS(VisionDataset):
"""`USPS <https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html#usps>`_ Dataset.
The data-format is : [label [index:value ]*256 \n] * num_lines, where ``label`` lies in ``[1, 10]``.
The data-format is : [label [index:value ]*256 \\n] * num_lines, where ``label`` lies in ``[1, 10]``.
The value for each pixel lies in ``[-1, 1]``. Here we transform the ``label`` into ``[0, 9]``
and make pixel values in ``[0, 255]``.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment