From ac4b520b11b69f086572ca5bc507687b991900ed Mon Sep 17 00:00:00 2001 From: youkaichao Date: Sun, 14 Jul 2019 10:25:48 -0700 Subject: [PATCH] Update usps.py The backslash should be escaped. Currently, [it](https://pytorch.org/docs/master/torchvision/datasets.html#usps) looks bad: --- torchvision/datasets/usps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/datasets/usps.py b/torchvision/datasets/usps.py index ee98e6e450f..434d620aa5d 100644 --- a/torchvision/datasets/usps.py +++ b/torchvision/datasets/usps.py @@ -9,7 +9,7 @@ class USPS(VisionDataset): """`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]``.