Datasets:
Commit
·
72fe1bb
1
Parent(s):
1d07d1d
update example usage
Browse files
README.md
CHANGED
|
@@ -124,17 +124,15 @@ This is an object detection dataset with 8 classes:
|
|
| 124 |
```python
|
| 125 |
from datasets import load_dataset
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
-
train_dataset = dataset["train"]
|
| 131 |
|
| 132 |
# Example of accessing an item
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
segmentations = item["objects"]["segmentation"] # Polygon coordinates
|
| 138 |
```
|
| 139 |
|
| 140 |
## Citation
|
|
|
|
| 124 |
```python
|
| 125 |
from datasets import load_dataset
|
| 126 |
|
| 127 |
+
train_dataset = load_dataset("makeabilitylab/disabilityparking", split="train", streaming=True)
|
| 128 |
|
| 129 |
+
example = next(iter(train_dataset))
|
|
|
|
| 130 |
|
| 131 |
# Example of accessing an item
|
| 132 |
+
image = example["image"]
|
| 133 |
+
bboxes = example["objects"]["bbox"]
|
| 134 |
+
categories = example["objects"]["category"]
|
| 135 |
+
segmentations = example["objects"]["segmentation"] # Polygon coordinates
|
|
|
|
| 136 |
```
|
| 137 |
|
| 138 |
## Citation
|