Closed jlxAtNovozymes closed 1 year ago
Can you try and erase the folder, and start afresh? In re-trying, does the download finish successively, or does it stop early (ending up with a corrupted file)?
If the download itself is ok, and you still get the error, can you check out the traceback?
I am having a similar issue, except this works for me on Windows but not for Linux.
On Linux:
> tiny_imagenet_dataset(".", download = TRUE)
Downloding tiny imagenet dataset!
Download complete. Now unzipping.
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file '/home/rstudio/tiny-imagenet-200/val/val_annotations.txt': No such file or directory
On Windows:
> tiny_imagenet_dataset(".", download = TRUE)
Downloding tiny imagenet dataset!
Download complete. Now unzipping.
Done!
<tiny_imagenet>
Inherits from: <image_folder>
Public:
.find_classes: function (dir)
.getitem: function (index)
.length: function ()
class_to_idx: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ...
classes: n01443537 n01629819 n01641577 n01644900 n01698640 n01742 ...
clone: function (deep = FALSE)
download: function ()
extensions: jpg jpeg png
imgs: list
initialize: function (root, split = "train", download = FALSE, ...)
loader: function (path)
root: C:/Users/nstephens/OneDrive - NVIDIA Corporation/Documen ...
root_path: C:\Users\nstephens\OneDrive - NVIDIA Corporation\Documen ...
samples: list
tar_name: tiny-imagenet-200
target_transform: NULL
targets: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
transform: NULL
url: http://cs231n.stanford.edu/tiny-imagenet-200.zip
I've cleared out existing directories in Linux. I am not sure why it is failing on Linux but working on Windows.
@nwstephens see https://github.com/r-lib/zip/issues/98
This should work once you use dev zip
Hi, guys, when I created dataset for tidy_imagenet_dataset, an error occurred