open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.3k stars 1.54k forks source link

error while executing the test.py code #522

Closed Latha-13 closed 3 years ago

Latha-13 commented 3 years ago

Hi

When i was executing : python demo/pcd_demo.py demo/kitti_000008.bin configs/pointpillars/hv_pointpillars_secfpn_6x8_160e_kitti-3d-3class.py checkpoints/hv_pointpillars_secfpn_6x8_160e_kitti-3d-3class_20200620_230421-aa0f3adb.pth

I got a issue name "no module named": Traceback (most recent call last): File "demo/pcd_demo.py", line 3, in from mmdet3d.apis import inference_detector, init_detector, show_result_meshlab ModuleNotFoundError: No module named 'mmdet3d'

but already the folder exists. can any please help me in resolving this issue.

wHao-Wu commented 3 years ago

Hi, @Latha-13

Have you installed the mmdet3d in your environment? The existence of the folder 'mmdet3d' doesn't mean you have install mmdet3d successfully. Please refer to here.

Latha-13 commented 3 years ago

Hi I have followed the steps given to install the mmdetection3d , Then how the module mmdet3d is not installed. can you please help me in solving the problem i have installed 2 times but the same error occurs . I have followed each and every steps in the installation process , That particular module alone is not installed is there any step for that.

wHao-Wu commented 3 years ago
celeste-1 commented 3 years ago

Hi I have followed the steps given to install the mmdetection3d , Then how the module mmdet3d is not installed. can you please help me in solving the problem i have installed 2 times but the same error occurs . I have followed each and every steps in the installation process , That particular module alone is not installed is there any step for that.

I think it might be : can't find the path,maybe you can try to add : import sys sys.path.append('.') in pcd_demo.py

Latha-13 commented 3 years ago

Hi

I tired to run the MMdetection3d in google collab i successfully installed mmdet3d but the issue is when i tried to run "mmdetection3d/demo/inference_demo.ipynb" i got the error ,

The code ran: from mmdet3d.apis import init_detector, inference_detector, show_result_pyplot

Choose to use a config and initialize the detector

config = 'configs/second/hv_second_secfpn_6x8_80e_kitti-3d-car.py'

Setup a checkpoint file to load

checkpoint = 'checkpoints/hv_second_secfpn_6x8_80e_kitti-3d-car_20200620_230238-393f000c.pth'

Error:

ModuleNotFoundError Traceback (most recent call last)

in () ----> 1 from mmdet3d.apis import init_detector, inference_detector, show_result_pyplot 2 # Choose to use a config and initialize the detector 3 config = 'configs/second/hv_second_secfpn_6x8_80e_kitti-3d-car.py' 4 # Setup a checkpoint file to load 5 checkpoint = 'checkpoints/hv_second_secfpn_6x8_80e_kitti-3d-car_20200620_230238-393f000c.pth' /content/mmdetection/mmdetection3d/mmdetection/mmdetection3d/mmdetection/mmdetection3d/mmdet3d/__init__.py in () 2 3 import mmdet ----> 4 import mmseg 5 from .version import __version__, short_version 6 ModuleNotFoundError: No module named 'mmseg'
Latha-13 commented 3 years ago

Like MMdetection do we have any google collab notebook for MMdetection3d for testing.