From 7f747235baf559f69438856da687abc1f99f277b Mon Sep 17 00:00:00 2001 From: devy52 <108571763+devy52@users.noreply.github.com> Date: Mon, 24 Mar 2025 13:29:38 +0530 Subject: [PATCH 1/2] Update build.py --- fastreid/data/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastreid/data/build.py b/fastreid/data/build.py index 23ac8d6..681bc16 100644 --- a/fastreid/data/build.py +++ b/fastreid/data/build.py @@ -16,7 +16,7 @@ if TORCH_MAJOR == 1 and TORCH_MINOR < 8: else: string_classes = str -from collections import Mapping +from collections.abc import Mapping from fastreid.config import configurable from fastreid.utils import comm From 8ea4d454f47e361bc15516aa15618e2a4871ea46 Mon Sep 17 00:00:00 2001 From: devy52 <108571763+devy52@users.noreply.github.com> Date: Mon, 24 Mar 2025 13:30:11 +0530 Subject: [PATCH 2/2] Update testing.py --- fastreid/evaluation/testing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastreid/evaluation/testing.py b/fastreid/evaluation/testing.py index cf4abc3..e10964f 100644 --- a/fastreid/evaluation/testing.py +++ b/fastreid/evaluation/testing.py @@ -2,8 +2,8 @@ import logging import pprint import sys -from collections import Mapping, OrderedDict - +from collections import OrderedDict +from collections.abc import Mapping import numpy as np from tabulate import tabulate from termcolor import colored