You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am loading data with image_data_from_csv(). I have a csv with labels for all of my data. When I leave all of my images in the folder, the program runs normally. If I move some of my images into test, the program panics when I try to train it:
Looking at the code, I think this is because my data that I moved into test is still in my labels.csv.
Expected behavior
The program should iterate only over the files that it found in folder, instead of trying to iterate over labels.csv and then crashing when it finds a file|class that does not exist in folder because it has been moved to test.
Alternatively, it is possible that this is an intentional design decision, but it feels clunky to allow us to use the CSV format to determine file|class but still have to create new folders and remove files from the label csv. If iterating over labels.csv instead of the folder is mandatory, it would be nice if the csv supported file|class|test (for example), so we could specify directly in the CSV which files were test files.
The text was updated successfully, but these errors were encountered:
I'm not sure I follow you. Using this method, you can't expect the library to iterate other files found in folder: it's supposed to have a list of filenames in the csv fil that all are in folder.
Note that ìmage_data_from_csv` doesn't support test datasets yet.
Going on, please use the forum for this, as it'll reach a larger audience, thanks!
Describe the bug
I am loading data with image_data_from_csv(). I have a csv with labels for all of my data. When I leave all of my images in the
folder
, the program runs normally. If I move some of my images intotest
, the program panics when I try to train it:Looking at the code, I think this is because my data that I moved into
test
is still in mylabels.csv
.Expected behavior
The program should iterate only over the files that it found in
folder
, instead of trying to iterate overlabels.csv
and then crashing when it finds afile|class
that does not exist infolder
because it has been moved totest
.Alternatively, it is possible that this is an intentional design decision, but it feels clunky to allow us to use the CSV format to determine
file|class
but still have to create new folders and remove files from the label csv. If iterating overlabels.csv
instead of thefolder
is mandatory, it would be nice if the csv supportedfile|class|test
(for example), so we could specify directly in the CSV which files were test files.The text was updated successfully, but these errors were encountered: