Datasets:
Download example.py from galatolo/TeTIm-Eval: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/datasets/galatolo/TeTIm-Eval/resolve/main/example.py
- Command line
-
hf download hf://datasets/galatolo/TeTIm-Eval/example.py
-
curl -L -o example.py https://huggingface.co/datasets/galatolo/TeTIm-Eval/resolve/main/example.py
361 Bytes
| from datasets import load_dataset | |
| # Load the 300 text-image labelled pairs | |
| ds = load_dataset("galatolo/TeTIm-Eval", "captioned") | |
| print(ds) | |
| for i, e in zip(range(0, 10), ds["test"]): print(f"{i}) {e}") | |
| # Load the 2500 labelled pairs | |
| ds = load_dataset("galatolo/TeTIm-Eval", "uncaptioned") | |
| print(ds) | |
| for i, e in zip(range(0, 10), ds["test"]): print(f"{i}) {e}") |