Skip to content

Commit e6bb080

Browse files
committed
chore: formatting
1 parent 4602df0 commit e6bb080

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

datatorch/api/scripts/import_coco.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def import_coco(
258258
anno["segmentation"] = simplify_segmentation(
259259
anno["segmentation"], tolerance=simplify_tolerance
260260
)
261-
261+
262262
if len(anno["segmentation"]) > 0:
263263
anno_mask = coco.annToMask(anno)
264264

@@ -269,7 +269,10 @@ def import_coco(
269269
path_data = segmentation_to_points(anno["segmentation"])
270270
created_segmentation = True
271271
annotation["sources"].append(
272-
{"type": "PaperSegmentations", "data": {"pathData": path_data}}
272+
{
273+
"type": "PaperSegmentations",
274+
"data": {"pathData": path_data},
275+
}
273276
)
274277

275278
if created_segmentation or created_bbox:

0 commit comments

Comments
 (0)