Commit
·
a20fd28
1
Parent(s):
3608fab
Update Carla-COCO-Object-Detection-Dataset.py
Browse files
Carla-COCO-Object-Detection-Dataset.py
CHANGED
@@ -117,4 +117,13 @@ class CARLA_COCO(datasets.GeneratorBasedBuilder):
|
|
117 |
|
118 |
with open(filepath, encoding="utf-8") as f:
|
119 |
for key, row in enumerate(f):
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
with open(filepath, encoding="utf-8") as f:
|
119 |
for key, row in enumerate(f):
|
120 |
+
data = json.loads(row)
|
121 |
+
yield key, {
|
122 |
+
"image_id": data["image_id"],
|
123 |
+
# "image": data["image"],
|
124 |
+
"width": data["width"],
|
125 |
+
"height": data["height"],
|
126 |
+
"file_name": data["file_name"],
|
127 |
+
"url": data["url"],
|
128 |
+
"objects": data["objects"],
|
129 |
+
}
|