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

ImportError: cannot import name 'init_detector' from 'mmdet3d.apis' #7

Closed
an-dhyun opened this issue Sep 12, 2021 · 2 comments
Closed

Comments

@an-dhyun
Copy link

an-dhyun commented Sep 12, 2021

Describe the bug
I got an error about init_detector

Reproduction

  1. What command or script did you run?
CUDA_VISIBLE_DEVICES=0 python demo/pcd_demo.py sunrgbd_000094.bin demo/brnet_8x1_sunrgbd-3d-10class.py checkpoints/brnet_8x1_sunrgbd-3d-10class_trained.pth
  1. What dataset did you use?
    sunrgbd_000094.bin

Error traceback
If applicable, paste the error trackback here.

Traceback (most recent call last):
  File "demo/pcd_demo.py", line 3, in <module>
    from mmdet3d.apis import inference_detector, init_detector, show_result_meshlab
ImportError: cannot import name 'init_detector' from 'mmdet3d.apis' (/.../BRNet/mmdetection3d/mmdet3d/apis/__init__.py)
@xinghuokang
Copy link

Did you compile success? run command and data are no problem.

@yimengguo
Copy link

This is because 'init_detector' is called 'init_model' in the 'mmdet3d.apis' in the newer version of mmdetection3d. You may try to use the demo/pcd_demo.py file provided in the mmdetection3d folder. https://github.com/open-mmlab/mmdetection3d

@cheng052 cheng052 closed this as completed Feb 8, 2022
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

4 participants