nyanko7 commited on
Commit
ebe6d07
1 Parent(s): 1fb4b9e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -1,3 +1,30 @@
1
  ---
2
  license: openrail
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: openrail
3
  ---
4
+
5
+ Usage:
6
+
7
+ ```
8
+ from datasets import load_dataset
9
+ coco_dataset = load_dataset("nyanko7/coco-hosted")
10
+ ```
11
+
12
+ Each instance has the following structure:
13
+
14
+ ```
15
+ {
16
+ 'image': <PIL.JpegImagePlugin.JpegImageFile>,
17
+ 'filepath': 'COCO_val2014_000000522418.jpg',
18
+ 'sentids': [681330, 686718, 688839, 693159, 693204],
19
+ 'filename': 'COCO_val2014_000000522418.jpg',
20
+ 'imgid': 1,
21
+ 'split': 'restval',
22
+ 'sentences': {
23
+ 'tokens': ['a', 'woman', 'wearing', 'a', 'net', 'on', 'her', 'head', 'cutting', 'a', 'cake'],
24
+ 'raw': 'A woman wearing a net on her head cutting a cake. ',
25
+ 'imgid': 1,
26
+ 'sentid': 681330
27
+ },
28
+ 'cocoid': 522418
29
+ }
30
+ ```