File size: 1,314 Bytes
454054f
 
72d4a1b
 
454054f
72d4a1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
license: apache-2.0
language:
- en
---

# LVIS
### Dataset Summary

This dataset is the implementation of LVIS dataset into Hugging Face datasets. Please visit the original website for more information. 

- https://www.lvisdataset.org/

### Loading
This code returns train, validation and test generators.

```python
from datasets import load_dataset

dataset = load_dataset("winvoker/lvis")
```

Objects is a dictionary which contains annotation information like bbox, class.
```
DatasetDict({
    train: Dataset({
        features: ['id', 'image', 'height', 'width', 'objects'],
        num_rows: 100170
    })
    validation: Dataset({
        features: ['id', 'image', 'height', 'width', 'objects'],
        num_rows: 4809
    })
    test: Dataset({
        features: ['id', 'image', 'height', 'width', 'objects'],
        num_rows: 19822
    })
})
```
### Access Generators
```python
train = dataset["train"]
validation = dataset["validation"]
test = dataset["test"] 
```

An example row is as follows.

```json
{  'id': 0, 
   'image': '000000437561.jpg', 
   'height': 480, 
   'width': 640, 
   'objects': {
               'bboxes': [[[392, 271, 14, 3]], 
               'classes': [117], 
               'segmentation': [[376, 272, 375, 270, 372, 269, 371, 269, 373, 269, 373]]
               }
 }
```