Skip to content

Commit 535ca1f

Browse files
author
Matt Sokoloff
committed
path to string
1 parent 957a4c3 commit 535ca1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/data/serialization/coco/panoptic_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def process_label(label: Label,
8787
segments.append(segment)
8888
is_thing[annotation.name] = 1 - int(all_stuff)
8989

90-
mask_file = image.file_name.replace('.jpg', '.png')
90+
mask_file = str(image.file_name).replace('.jpg', '.png')
9191
mask_file = Path(mask_root, mask_file)
9292
Image.fromarray(canvas.astype(np.uint8)).save(mask_file)
9393
return image, PanopticAnnotation(

0 commit comments

Comments
 (0)