Update script to hub
Browse files- Boat_dataset.py +1 -6
Boat_dataset.py
CHANGED
@@ -105,12 +105,7 @@ class BoatDataset(datasets.GeneratorBasedBuilder):
|
|
105 |
"image_path": data["image_path"],
|
106 |
"width": data["width"],
|
107 |
"height": data["height"],
|
108 |
-
"objects":
|
109 |
-
"id": data["objects"]["id"],
|
110 |
-
"area": data["objects"]["area"],
|
111 |
-
"bbox": data["objects"]["bbox"],
|
112 |
-
"category": [classes[idx] for idx in data["objects"]["category"]]
|
113 |
-
},
|
114 |
}
|
115 |
except json.JSONDecodeError:
|
116 |
print(f"Skipping invalid JSON at line {key + 1}: {row}")
|
|
|
105 |
"image_path": data["image_path"],
|
106 |
"width": data["width"],
|
107 |
"height": data["height"],
|
108 |
+
"objects": data["objects"]
|
|
|
|
|
|
|
|
|
|
|
109 |
}
|
110 |
except json.JSONDecodeError:
|
111 |
print(f"Skipping invalid JSON at line {key + 1}: {row}")
|