Skip to content

Commit

Permalink
Fixed the broken devkit link (#944)
Browse files Browse the repository at this point in the history
* Fixed the broken devkit link
* Update imagenet_datamodule.py

---------

Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 28, 2023
1 parent c4e717c commit 8484e97
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pl_bolts/datamodules/imagenet_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@ def prepare_data(self) -> None:
if "meta.bin" not in files:
raise FileNotFoundError(
"""
no meta.bin present. Imagenet is no longer automatically downloaded by PyTorch.
To get imagenet:
1. download yourself from http://www.image-net.org/challenges/LSVRC/2012/downloads
2. download the devkit (ILSVRC2012_devkit_t12.tar.gz)
3. generate the meta.bin file using the devkit
4. copy the meta.bin file into both train and val split folders
To generate the meta.bin do the following:
from pl_bolts.datasets import UnlabeledImagenet
path = '/path/to/folder/with/ILSVRC2012_devkit_t12.tar.gz/'
UnlabeledImagenet.generate_meta_bins(path)
no meta.bin present. Imagenet is no longer automatically downloaded by PyTorch.
To get imagenet:
1. download the devkit (https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz)
2. generate the meta.bin file using the devkit
3. copy the meta.bin file into both train and val split folders
To generate the meta.bin do the following:
from pl_bolts.datasets import UnlabeledImagenet
path = '/path/to/folder/with/ILSVRC2012_devkit_t12.tar.gz/'
UnlabeledImagenet.generate_meta_bins(path)
"""
)

Expand Down

0 comments on commit 8484e97

Please sign in to comment.