fix: load script
Browse files
people-with-guns-segmentation-and-detection.py
CHANGED
@@ -153,7 +153,7 @@ class PeopleWithGunsSegmentationAndDetection(datasets.GeneratorBasedBuilder):
|
|
153 |
"id": image_id,
|
154 |
"name": name,
|
155 |
"image": os.path.join(data, "images", file),
|
156 |
-
"mask": os.path.join(data, "labels", file),
|
157 |
"width": width,
|
158 |
"height": height,
|
159 |
"shapes": shapes,
|
|
|
153 |
"id": image_id,
|
154 |
"name": name,
|
155 |
"image": os.path.join(data, "images", file),
|
156 |
+
"mask": os.path.join(data, "labels", f"{file.split('.')[-2]}.png"),
|
157 |
"width": width,
|
158 |
"height": height,
|
159 |
"shapes": shapes,
|