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