提交 50adb8f1 编写于 作者: E Erik 提交者: Kentaro Wada

fixes inability to save PNGS with alpha channels, ie RBGA

上级 5c76adda
......@@ -93,7 +93,7 @@ def main():
)
img = labelme.utils.img_data_to_arr(label_file.imageData)
PIL.Image.fromarray(img).save(out_img_file)
PIL.Image.fromarray(img).convert("RGB").save(out_img_file)
data['images'].append(dict(
license=0,
url=None,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册