dataset = load_dataset("imagefolder", data_dir= data_dir,drop_labels = False) #6249
-
dataset = load_dataset("imagefolder", data_dir= data_dir,drop_labels = False), |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Can you share the output of running the following code? from datasets.data_files import get_metadata_patterns
print(get_metadata_patterns(data_dir)) |
Beta Was this translation helpful? Give feedback.
Thanks! I think the problem is that all the files share the same parent directory. If that's the case, there is a single label (equal to the parent directory's name), so we drop it by default (unless
drop_labels=False
).