From 93ea350c38886dbb063cbf223846cada2b2209aa Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Tue, 7 Feb 2023 16:57:45 +0800 Subject: [PATCH] fix color display for python 3.10 (#7695) --- ppdet/utils/colormap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/utils/colormap.py b/ppdet/utils/colormap.py index a9cdbe891..67c68dc1c 100644 --- a/ppdet/utils/colormap.py +++ b/ppdet/utils/colormap.py @@ -55,4 +55,4 @@ def colormap(rgb=False): color_list = color_list.reshape((-1, 3)) * 255 if not rgb: color_list = color_list[:, ::-1] - return color_list + return color_list.astype('int32') -- GitLab