This is my first time posting so please let me know how I can improve on communicating the error.
I am looking at the fashion mnist dataset from kaggle. When I call learn.fit I get the following error: No such file or directory: data/fashionmnist/train/7. One of the other times I ran this I was also getting an error like No such file or directory: data/fashionmnist/train/9. I am not sure why it is looking for a number inside the train folder, when the only thing that is in there is a CSV called fashion-mnist_train.csv.
The step where I call ImageClassifierData is probably where the error is occuring.
I think it is because of the ImageClassifierData.from_csv
Try looking at its docstring. It will tell you how to use it.
You can do that by typing ImageClassifierData.from_csv and SHIFT+TAB+TAB (Hold shift and double press tab.)
It should bring up how to use the function and its arguments.
I’m not sure if i’m interpreting this correctly. Are you saying to create another folder called imgs, and to put actual pictures like .jpgs inside that folder? If that is the case how would I change the ImageClassifierData.from_csv
No, I was wrong the images are stored in the csv file.
ImageClassifierData.from_csv doesn’t read it in correctly therefore.
Now the question is how to load in the fashion mnist csv to create a DataLoader. Unfortunately, I don’t know the answer yet…
when I run x,y = next(iter(data.val_dl)) on my own dataset, it returns
OSError: No such file or directory.
I just run the planet competition notebook and it works fine. I tried to find the solution but didn’t find anything. can you suggest me how to solve this issue?
thank you for your reply.
I have all my images in the train folder. however, when i run x,y = next(iter(data.val_dl)) the OSError: No such file or directory returns a file name that is not in my label_csv file.
i made a post in the forum about this issue: X,y = next(iter(data.val_dl)) returns no such file error; with more details
appreciate for any suggestion.