Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
7e61f8d1
"git@developer.sourcefind.cn:OpenDAS/torch-sparce.git" did not exist on "1cb25232bdefcaad8ad88c540442981e8d8cab0e"
Commit
7e61f8d1
authored
Nov 07, 2017
by
Dr. Kashif Rasul
Committed by
Soumith Chintala
Nov 07, 2017
Browse files
added fashion-mnist to docs (#327)
parent
3d597bc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
docs/source/datasets.rst
docs/source/datasets.rst
+5
-0
torchvision/datasets/mnist.py
torchvision/datasets/mnist.py
+14
-1
No files found.
docs/source/datasets.rst
View file @
7e61f8d1
...
...
@@ -30,6 +30,11 @@ MNIST
.. autoclass:: MNIST
Fashion-MNIST
~~~~~~~~~~~~~
.. autoclass:: FashionMNIST
COCO
~~~~
...
...
torchvision/datasets/mnist.py
View file @
7e61f8d1
...
...
@@ -140,7 +140,20 @@ class MNIST(data.Dataset):
class
FashionMNIST
(
MNIST
):
"""`Fashion MNIST <https://github.com/zalandoresearch/fashion-mnist>`_ Dataset.
"""`Fashion-MNIST <https://github.com/zalandoresearch/fashion-mnist>`_ Dataset.
Args:
root (string): Root directory of dataset where ``processed/training.pt``
and ``processed/test.pt`` exist.
train (bool, optional): If True, creates dataset from ``training.pt``,
otherwise from ``test.pt``.
download (bool, optional): If true, downloads the dataset from the internet and
puts it in root directory. If dataset is already downloaded, it is not
downloaded again.
transform (callable, optional): A function/transform that takes in an PIL image
and returns a transformed version. E.g, ``transforms.RandomCrop``
target_transform (callable, optional): A function/transform that takes in the
target and transforms it.
"""
urls
=
[
'http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment