From 82003cef1bc1b154a2b3b3cce89df49f8dbcb739 Mon Sep 17 00:00:00 2001 From: Pavel Bartsits <48913536+cxnt@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:15:47 +0400 Subject: [PATCH] Update utils.py --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index cbba15e..394513f 100644 --- a/src/utils.py +++ b/src/utils.py @@ -72,7 +72,7 @@ def ann_to_xml(project_info, image_info, img_filename, result_ann_dir, ann): is_segmented = 0 for label in ann.labels: - if label.obj_class.geometry != sly.Rectangle: + if label.obj_class.geometry_type != sly.Rectangle: is_segmented = 1 break