SxJyJay / MSMDFusion

[CVPR 2023] MSMDFusion: Fusing LiDAR and Camera at Multiple Scales with Multi-Depth Seeds for 3D Object Detection
Apache License 2.0
183 stars 11 forks source link

Problem for visualizing the demo #16

Closed YuJiXYZ closed 1 year ago

YuJiXYZ commented 1 year ago

Hello, thank you for your outstanding work. I am currently retrying your code.

The problem I encountered is when visualizing the demo and displaying this error: ImportError: cannot import name 'init_ detector' from 'mmdet3d.apis' (/home/ps/yuji/MSMDFusion/mmdetection3d/mmdet3d/apis/init.py)

My command line is: Python demo/pcd demo.py demo/kitti 000008.bin configs/second/hv second secfpn 6x8 80e kitti-3d-car.py checkpoints/hv second secfpn 6x8 80e kitti-3d-car 20200620 230238-393f000c.pth --device 0 --out-dir /home/ps/yuji/MSMDFusion/outdir image

According to the error report, it is due to an error in the file path of the import.

So I have two questions: 1.What is the difference between the mmdet3d folder and mmdetection3d?

  1. If the visualized demo refers to the pcd_demo located in the mmdet3d folder, why is there an error that cannot be imported in mmdetection3d folder?

Looking forward to your reply. Thank you very much~

SxJyJay commented 1 year ago
  1. mmdetection3d is an open-source 3D object detection toolbox, which provides a wide range of off-the-shelf 3D detectors and commonly used ops, and mmdet3d folder includes these source files.
  2. Maybe you should check the path of your imported mmdet3d.
YuJiXYZ commented 1 year ago

OK, I will check them. Thank you very much. But I find the installing and geting_stated.md are a little bit delayed that cannot keep up with the version, and some links that cannot be accessed. Look forward to your further improvement.

Additionally, based on the installation commands, I would like to know what the final directory will look like? Is there a mmdet3d folder under mmdetection3d, or is there a folder under the final directory that includes both mmdetection3d and mmdet3d folder?

Thank you again.

SxJyJay commented 1 year ago

You can compare the file organization structure of our repo and mmdetection3d, and it can be seen that they have similar directory structures. That is to say, our repo is developed based on the official mmdetection3d, so you can just regard our repo as mmdetection3d and directly compile the environment following the getting_started.md.

YuJiXYZ commented 1 year ago

OK. Thank you very much.