Datasets:
| # Loading MANUS-HaGRID Examples | |
| ## With WebDataset | |
| ```python | |
| import json | |
| import webdataset as wds | |
| dataset = wds.WebDataset("data/hagrid_v2/test/hagrid-v2-test-{000000..000006}.tar") | |
| for sample in dataset: | |
| meta_key = next(k for k in sample if k.endswith(".json")) | |
| meta = json.loads(sample[meta_key].decode("utf-8")) | |
| print(meta["sample_id"], meta["available_files"]) | |
| break | |
| ``` | |
| ## After Hugging Face Upload | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("QFun/MANUS-HaGRID", "hagrid_v2", split="test", streaming=True) | |
| first = next(iter(ds)) | |
| print(first.keys()) | |
| ``` | |
| Official Hugging Face repository id: `QFun/MANUS-HaGRID`. | |