Skip to content

dataset = load_dataset("imagefolder", data_dir= data_dir,drop_labels = False) #6249

Closed Answered by mariosasko
cobaltautomationdev asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cobaltautomationdev
Comment options

@mariosasko
Comment options

Answer selected by cobaltautomationdev
@cobaltautomationdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants