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

[BUG] Downloading dataset from HF HUB #5292

Open
ankandrew opened this issue Dec 18, 2024 · 1 comment
Open

[BUG] Downloading dataset from HF HUB #5292

ankandrew opened this issue Dec 18, 2024 · 1 comment
Labels
bug Bug fixes

Comments

@ankandrew
Copy link

Documentation says:

Detection Datasets

Loading detection datasets from the Hub is just as easy. For example, to load the MS COCO dataset, you can specify the detection_fields as "objects", which is the standard column name for detection features in Hugging Face datasets:

from fiftyone.utils.huggingface import load_from_hub

dataset = load_from_hub(
    "detection-datasets/coco",
    format="parquet",
    detection_fields="objects",
    max_samples=1000,
)

session = fo.launch_app(dataset)

The same syntax works for many other popular detection datasets on the Hub, including:

But when trying it for the CUHK-CSE/wider_face seems it might not be able to consume it like the others. https://datasets-server.huggingface.co/splits?dataset=detection-datasets/coco endpoint from example is returning properly, but https://datasets-server.huggingface.co/splits?dataset=CUHK-CSE%2Fwider_face is not.

Code to reproduce:

import fiftyone as fo
from fiftyone.utils.huggingface import load_from_hub

dataset = load_from_hub(
    "CUHK-CSE/wider_face",
    format="parquet",
    detection_fields="objects",
    max_samples=1000,
)

if __name__ == "__main__":
    session = fo.launch_app(dataset)

Throws KeyError: 'splits' errror.

@ankandrew ankandrew added the bug Bug fixes label Dec 18, 2024
@ankandrew
Copy link
Author

Running fiftyone==1.1.0.

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

No branches or pull requests

1 participant