From ac5f948dc3dbb6b737b838068611ea92df4e2c07 Mon Sep 17 00:00:00 2001 From: Adarsh <37295203+Adarsh0047@users.noreply.github.com> Date: Fri, 29 Sep 2023 11:44:09 +0530 Subject: [PATCH] Update data_structure.py Fixed import error since collections was modified after python version 3.10 --- dit/object_detection/ditod/table_evaluation/data_structure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dit/object_detection/ditod/table_evaluation/data_structure.py b/dit/object_detection/ditod/table_evaluation/data_structure.py index 9b992189e..eb65cefd4 100644 --- a/dit/object_detection/ditod/table_evaluation/data_structure.py +++ b/dit/object_detection/ditod/table_evaluation/data_structure.py @@ -3,7 +3,7 @@ Yu Fang - March 2019 """ -from collections import Iterable +from collections.abc import Iterable import numpy as np from shapely.geometry import Polygon @@ -466,4 +466,4 @@ def resTotal(self): return self._resTotal def __str__(self): - return "true: {}, gt: {}, res: {}".format(self._truePos, self._gtTotal, self._resTotal) \ No newline at end of file + return "true: {}, gt: {}, res: {}".format(self._truePos, self._gtTotal, self._resTotal)