File size: 923 Bytes
867d57f
 
 
 
 
 
 
 
 
c3461d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
task_categories:
- image-to-text
- text-to-image
language:
- en
pretty_name: flickr8k
size_categories:
- 1K<n<10K
---

You must download the dataset files manually. You can visit [this](https://github.com/jbrownlee/Datasets/releases/tag/Flickr8k) page or run `download.sh` to get files.

After, you can load dataset by referencing the directory:

```py
import datasets
ds = datasets.load_dataset("atasoglu/flickr8k-dataset", data_dir="data")
print(ds)
```

```
DatasetDict({
    train: Dataset({
        features: ['image_id', 'image_path', 'captions'],
        num_rows: 6000
    })
    test: Dataset({
        features: ['image_id', 'image_path', 'captions'],
        num_rows: 1000
    })
    validation: Dataset({
        features: ['image_id', 'image_path', 'captions'],
        num_rows: 1000
    })
})
```

I don't own the copyright of the images. Please [visit](https://forms.illinois.edu/sec/1713398) for more.