From 688af609c7b4d69dbecbfe33521fa3fecea08af9 Mon Sep 17 00:00:00 2001 From: victorjourne Date: Sun, 4 Sep 2022 22:45:15 +0200 Subject: [PATCH] :pencil2: Correct typo typo in plot_polygon function, with show_parts=True. Parts Polygons displayed are those of Objects --- utils/utils_ade20k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils_ade20k.py b/utils/utils_ade20k.py index 96bb5e9..c26f1e2 100644 --- a/utils/utils_ade20k.py +++ b/utils/utils_ade20k.py @@ -101,7 +101,7 @@ def plot_polygon(img_name, info, show_obj=True, show_parts=False): all_poly += info['objects']['polygon'] if show_parts: all_objects += info['parts']['class'] - all_poly += info['objects']['polygon'] + all_poly += info['parts']['polygon'] img = cv2.imread(img_name) thickness = 5