Traceback (most recent call last):


 "D:/Projects/Track/OpenCV/centerNet-deep-sort/demo_centernet_deepsort.py", line 15, in <module>

from
CenterNet.src.lib.detectors.detector_factory import detector_factory


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\detectors\detector_factory.py", line 5, in <module>

from .exdet import ExdetDetector


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\detectors\exdet.py", line 33, in <module>

from .base_detector import BaseDetector


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\detectors\base_detector.py", line 14, in <module>

from ..models.model import create_model, load_model


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\models\model.py", line 12, in <module>

from .networks.pose_dla_dcn import get_pose_net as get_dla_dcn


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\models\networks\pose_dla_dcn.py", line 16, in <module>

from .DCNv2.dcn_v2 import DCN


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\models\networks\DCNv2\dcn_v2.py", line 11, in <module>

from .dcn_v2_func import DCNv2Function


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\models\networks\DCNv2\dcn_v2_func.py", line 9, in <module>

from ._ext import dcn_v2 as _backend


 "D:\Projects\Track\OpenCV\centerNet-deep-sort\CenterNet\src\lib\models\networks\DCNv2\_ext\dcn_v2\__init__.py", line 6, in <module>

from ..dcn_v2 import lib as _lib, ffi as _ffi
ImportError: cannot import name 'lib'

Traceback (most recent call last):


 "build_double.py", line 3, in <module>

from torch.utils.ffi import create_extension


 "/home/lan/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/ffi/__init__.py", line 1, in <module>

raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
