mlverse / torchvision

R interface to torchvision
https://torchvision.mlverse.org
Other
62 stars 14 forks source link

Bug in tiny imagenet #94

Closed sebffischer closed 1 year ago

sebffischer commented 1 year ago
dir = tempfile()

torchvision::tiny_imagenet_dataset(dir, download = TRUE)
#> Downloding tiny imagenet dataset!
#> Download complete. Now unzipping.
#> Warning in file(file, "rt"): cannot open file
#> '/tmp/RtmpAv0Phl/file278fa3ce9e4ea/tiny-imagenet-200/val/val_annotations.txt':
#> No such file or directory
#> Error in file(file, "rt"): cannot open the connection

Created on 2023-07-06 with reprex v2.0.2

dfalbel commented 1 year ago

I suspect this is caused by https://github.com/r-lib/zip/issues/99 Can you try installing the dev version to see if the problem is fixed?

sebffischer commented 1 year ago

Thanks, this was indeed the problem. Installing the dev version of zip fixed the issue.

dfalbel commented 1 year ago

I'll bump the required zip version once this dev zip version is on CRAN. We could use a different unzip library in the meantime as a workaround, but not sure if it's worth the effort.

sebffischer commented 1 year ago

Thanks! And yes, this is probably unnecessary. Maybe it's worth to add some tests to check that the datasets can be downloaded though.