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
81ca2a1d
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "dfcce3ca6ed4cd68246bdf7ee98f1e67b4d252c4"
Commit
81ca2a1d
authored
Apr 18, 2019
by
Philip Meier
Committed by
Soumith Chintala
Apr 18, 2019
Browse files
add documentation for ImageNet dataset (#859)
parent
07a02460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
docs/source/datasets.rst
docs/source/datasets.rst
+5
-6
No files found.
docs/source/datasets.rst
View file @
81ca2a1d
...
@@ -7,7 +7,7 @@ Hence, they can all be passed to a :class:`torch.utils.data.DataLoader`
...
@@ -7,7 +7,7 @@ Hence, they can all be passed to a :class:`torch.utils.data.DataLoader`
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
For example: ::
For example: ::
imagenet_data = torchvision.datasets.Image
Folder
('path/to/imagenet_root/')
imagenet_data = torchvision.datasets.Image
Net
('path/to/imagenet_root/')
data_loader = torch.utils.data.DataLoader(imagenet_data,
data_loader = torch.utils.data.DataLoader(imagenet_data,
batch_size=4,
batch_size=4,
shuffle=True,
shuffle=True,
...
@@ -100,12 +100,11 @@ DatasetFolder
...
@@ -100,12 +100,11 @@ DatasetFolder
Imagenet-12
Imagenet-12
~~~~~~~~~~~
~~~~~~~~~~~
This should simply be implemented with an ``ImageFolder`` dataset.
.. autoclass:: ImageNet
The data is preprocessed `as described
here <https://github.com/facebook/fb.resnet.torch/blob/master/INSTALL.md#download-the-imagenet-dataset>`__
.. note ::
This requires `scipy` to be installed
`Here is an
example <https://github.com/pytorch/examples/blob/e0d33a69bec3eb4096c265451dbb85975eb961ea/imagenet/main.py#L113-L126>`__.
CIFAR
CIFAR
~~~~~
~~~~~
...
...
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