meerkat icon indicating copy to clipboard operation
meerkat copied to clipboard

[BUG] Downloading imagenet does not work

Open MaxFBurg opened this issue 2 years ago • 1 comments

Describe the bug Downloading imagenet like this does not work:

dp = mk.datasets.get(
    "imagenet", 
    dataset_dir="/home/ec2-user/data/imagenet1k",
    download=True,
)

Fails with FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/data/imagenet1k/ILSVRC/ImageSets/CLS-LOC/train_cls.txt'

To Reproduce Steps and code snippet that reproduce the behavior:

  1. Code snippet '....'
  2. Instructions (Run '...')
  3. Errors and traceback '....'

See above

Include any relevant screenshots.

Expected behavior Should download imagenet1k to the specified dataset_dir.

System Information

  • OS: Linux
  • Versions for RG and relevant dependencies meerkat-ml (latest)

Additional context Add any other context about the problem here.

MaxFBurg avatar Oct 06 '22 12:10 MaxFBurg

Hi, thanks for the report, try:

dp = mk.datasets.get(
    "imagenet", 
    dataset_dir="/home/ec2-user/data/imagenet1k",
    download_mode="force",
)

krandiash avatar Oct 07 '22 04:10 krandiash