Skip to content

Commit 41f81a0

Browse files
committed
coco fix
1 parent fac6d4f commit 41f81a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

superannotate/input_converters/converters/coco_converters/coco_to_sa_pixel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def coco_panoptic_segmentation_to_sa_pixel(coco_path, output_dir):
8484
sa_instances.append(sa_obj)
8585

8686
img = cv2.cvtColor(img.reshape((H, W, C)), cv2.COLOR_RGB2BGR)
87-
cv2.imwrite(str(output_dir / ("%s___save.png" % annot['file_name'])), img)
87+
cv2.imwrite(
88+
str(output_dir / ("%s___save.png" % annot['file_name'])), img
89+
)
8890

8991
images_converted.append(annot['file_name'])
9092
file_name = "%s___pixel.json" % annot['file_name']

0 commit comments

Comments
 (0)