Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions torchvision/datasets/imagenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
class ImageNet(ImageFolder):
"""`ImageNet <http://image-net.org/>`_ 2012 Classification Dataset.
Before using this class, it is required to download `ImageNet 2012` dataset from
`here <https://image-net.org/challenges/LSVRC/2012/2012-downloads.php>`_ and
place ILSVRC2012_devkit_t12.tar.gz, ILSVRC2012_img_train.tar or
ILSVRC2012_img_val.tar based on split in the root directory.
Args:
root (string): Root directory of the ImageNet Dataset.
split (string, optional): The dataset split, supports ``train``, or ``val``.
Expand Down