Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix imagefolder with one image #6556

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jan 3, 2024

A dataset repository with one image and one metadata file was considered a JSON dataset instead of an ImageFolder dataset. This is because we pick the dataset type with the most compatible data file extensions present in the repository and it results in a tie in this case.

e.g. for https://huggingface.co/datasets/multimodalart/repro_1_image

I fixed this by deprioritizing metadata files in the count.

fix #6545

@lhoestq lhoestq marked this pull request as ready for review January 3, 2024 13:15
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link

@apolinario apolinario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@lhoestq lhoestq merged commit c47cc14 into main Jan 9, 2024
12 checks passed
@lhoestq lhoestq deleted the fix-imagefolder-with-one-image branch January 9, 2024 13:06
@severo
Copy link
Collaborator

severo commented Feb 12, 2024

Fixed in dataset viewer: https://huggingface.co/datasets/multimodalart/repro_1_image

Capture d’écran 2024-02-12 à 22 57 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

image column not automatically inferred if image dataset only contains 1 image
4 participants