File size: 500 Bytes
0ff4124 1fc16bc 0ff4124 1fc16bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
To load the dataset on your local device:
```py
# Local loading
from datasets import load_dataset
dataset = load_dataset("/home/think3/Desktop/1. MSCOCO_captions_dataset_edited/dataset_test_jsonl/ImageCaptions.py", split='train[{}:]'.format(1),cache_dir="dataset_test_jsonl/caching")
```
To load the dataset from Huggingface:
```py
# Test the remote repo:
from datasets import load_dataset
dataset = load_dataset("Arabic-Clip/mscoco_jsonl_full", split='train[:]', cache_dir="cache/remote")
``` |