Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when I run demo.py #915

Open
xdnjust opened this issue May 29, 2021 · 4 comments
Open

error when I run demo.py #915

xdnjust opened this issue May 29, 2021 · 4 comments

Comments

@xdnjust
Copy link

xdnjust commented May 29, 2021

(FR1) [root@localhost src]# python demo.py ctdet --demo ../images --load_model ../models/ctdet_coco_dla_2x.pth

Traceback (most recent call last):
File "demo.py", line 11, in
from detectors.detector_factory import detector_factory
File "/users_4/d00477216/4_CenterNet-master/src/lib/detectors/detector_factory.py", line 5, in
from .exdet import ExdetDetector
File "/users_4/d00477216/4_CenterNet-master/src/lib/detectors/exdet.py", line 21, in
from .base_detector import BaseDetector
File "/users_4/d00477216/4_CenterNet-master/src/lib/detectors/base_detector.py", line 11, in
from models.model import create_model, load_model
File "/users_4/d00477216/4_CenterNet-master/src/lib/models/model.py", line 12, in
from .networks.pose_dla_dcn import get_pose_net as get_dla_dcn
File "/users_4/d00477216/4_CenterNet-master/src/lib/models/networks/pose_dla_dcn.py", line 16, in
from .DCNv2.dcn_v2 import DCN
File "/users_4/d00477216/4_CenterNet-master/src/lib/models/networks/DCNv2/dcn_v2.py", line 11, in
from .dcn_v2_func import DCNv2Function
File "/users_4/d00477216/4_CenterNet-master/src/lib/models/networks/DCNv2/dcn_v2_func.py", line 9, in
from ._ext import dcn_v2 as _backend
ModuleNotFoundError: No module named 'models.networks.DCNv2._ext'

@Ambuj31
Copy link

Ambuj31 commented Jun 9, 2021

Did you find something??? Facing the same issues!

@howdidthatwork
Copy link

Same, not sure how to fix this

@sevenandseven
Copy link

I have the same question,can you tell me how to solve?

@XhHello
Copy link

XhHello commented Sep 25, 2021

Need to compile DCNv2.
cd src\lib\models\networks\DCNv2
python setup.py build develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants