CenterNet环境配置No module named '_ext'问题

https://blog.csdn.net/sinat_29634715/article/details/102609876
部署方法按照以上链接。
Traceback (most recent call last):
File “main.py”, line 12, in
from models.model import create_model, load_model, save_model
File “D:\编译\CV and DeepLearning\CenterNet-master\src\lib\models\model.py”, line 12, in
from .networks.pose_dla_dcn import get_pose_net as get_dla_dcn
File “D:\编译\CV and DeepLearning\CenterNet-master\src\lib\models\networks\pose_dla_dcn.py”, line 16, in
from .DCNv2.dcn_v2 import DCN
File “D:\编译\CV and DeepLearning\CenterNet-master\src\lib\models\networks\DCNv2\dcn_v2.py”, line 13, in
import _ext as _backend
ModuleNotFoundError: No module named ‘_ext’
上述问题出现时因为没安装在自己的Python环境中。先切换到自己的Python环境,再运行python setup.py build develop。

你可能感兴趣的:(计算机视觉)