Update build.py

there was a change in Python 3.10 and the Mapping class has been moved to the collections.abc module. So, if you're using Python 3.10 or later, you should import the Mapping class from the collections.abc module, not the collections module
pull/713/head
Naveen Mittal 2023-12-07 11:56:53 +05:30 committed by GitHub
parent fd586884ce
commit 1a4eeb36dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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