未验证 提交 729327d3 编写于 作者: K Kentaro Wada 提交者: GitHub

Add support for png files (#609)

* Add support for png files

* Updates
上级 18157b7e
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册