Download utils/datasource.py from Racktic/VLMEvalKit: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/Racktic/VLMEvalKit/resolve/main/utils/datasource.py
- Command line
-
hf download hf://datasets/Racktic/VLMEvalKit/utils/datasource.py
-
curl -L -o datasource.py https://huggingface.co/datasets/Racktic/VLMEvalKit/resolve/main/utils/datasource.py
305 Bytes
| import json | |
| from collections import defaultdict | |
| ds = defaultdict(int) | |
| with open('public_eval/bbox_step_300/MathVista_MINI/20250418/bbox_step_300/bbox_step_300_MathVista_MINI_bbox.json') as infile: | |
| data = json.load(infile) | |
| for item in data: | |
| source = item['source'] | |
| ds[source] += 1 | |
| print(ds) |