We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4602df0 commit e6bb080Copy full SHA for e6bb080
datatorch/api/scripts/import_coco.py
@@ -258,7 +258,7 @@ def import_coco(
258
anno["segmentation"] = simplify_segmentation(
259
anno["segmentation"], tolerance=simplify_tolerance
260
)
261
-
+
262
if len(anno["segmentation"]) > 0:
263
anno_mask = coco.annToMask(anno)
264
@@ -269,7 +269,10 @@ def import_coco(
269
path_data = segmentation_to_points(anno["segmentation"])
270
created_segmentation = True
271
annotation["sources"].append(
272
- {"type": "PaperSegmentations", "data": {"pathData": path_data}}
+ {
273
+ "type": "PaperSegmentations",
274
+ "data": {"pathData": path_data},
275
+ }
276
277
278
if created_segmentation or created_bbox:
0 commit comments