Skip to content

Commit

Permalink
Add support for png files (wkentaro#609)
Browse files Browse the repository at this point in the history
* Add support for png files

* Updates
  • Loading branch information
wkentaro authored Mar 5, 2020
1 parent 18157b7 commit 729327d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/instance_segmentation/labelme2coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def main():
img_file = osp.join(
osp.dirname(label_file), label_data['imagePath']
)
img = np.asarray(PIL.Image.open(img_file))
img = np.asarray(PIL.Image.open(img_file).convert('RGB'))
PIL.Image.fromarray(img).save(out_img_file)
data['images'].append(dict(
license=0,
Expand Down

0 comments on commit 729327d

Please sign in to comment.