未验证 提交 93ea350c 编写于 作者: W wangguanzhong 提交者: GitHub

fix color display for python 3.10 (#7695)

上级 e22eb8a1
...@@ -55,4 +55,4 @@ def colormap(rgb=False): ...@@ -55,4 +55,4 @@ def colormap(rgb=False):
color_list = color_list.reshape((-1, 3)) * 255 color_list = color_list.reshape((-1, 3)) * 255
if not rgb: if not rgb:
color_list = color_list[:, ::-1] color_list = color_list[:, ::-1]
return color_list return color_list.astype('int32')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册