open-mmlab / mmdetection3d

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

The output of fcaf3d pretrained model on Scannet sample (3D detection) is None #2579

Open ThePassedWind opened 1 year ago

ThePassedWind commented 1 year ago

I've succeeded in running this command to infer 3D detection results of my own data, eg: tr3d and votenet model:

  1. python demo/pcd_demo.py /mnt/data1/mmdetection3d/data/scannet/cloud_2hu.bin \ configs/tr3d/tr3d_scannet-3d-18class.py \ checkpoints/tr3d_scannet.pth \ --out-dir demo/scene0000_00/ --show --score-thr 0.6
  2. python demo/pcd_demo.py /mnt/data1/mmdetection3d/data/scannet/cloud_2hu.bin configs/votenet/votenet_8x8_scannet-3d-18class.py checkpoints/votenet_8x8_scannet-3d-18class_20210823_234503-cf8134fa.pth \ --out-dir demo/scene0000_00/ --show --score-thr 0.5 However, I was likely to face some problems when running this command by using fcaf3d model, due to the None output: python demo/pcd_demo.py /mnt/data1/mmdetection3d/data/scannet/cloud_2hu.bin \ configs/fcaf3d/fcaf3d_scannet-3d-18class.py \ checkpoints/fcaf3d_8x2_scannet-3d-18class_20220805_084956.pth \ --out-dir demo/scene0000_00/ --show --score-thr 0.5

_The output is None as follow: Traceback (most recent call last): File "demo/pcd_demo.py", line 44, in main() File "demo/pcd_demo.py", line 33, in main show_result_meshlab( File "/mnt/data1/tr3d/mmdet3d/apis/inference.py", line 527, in show_result_meshlab file_name = show_det_result_meshlab(data, result, out_dir, score_thr, File "/mnt/data1/tr3d/mmdet3d/apis/inference.py", line 370, in show_det_result_meshlab show_result( File "/mnt/data1/tr3d/mmdet3d/core/visualizer/show_result.py", line 129, in show_result 0, 255, size=(predlabels.max() + 1, 3)) / 256 RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.

Could you please help me find the reason why there is nothing by fcaf3d model when inferring the same data as the former model(tr3d and votenet model).

JingweiZhang12 commented 1 year ago

@JingweiZhang12 Please use the dev-1.x or main branch. The version before 1.1.0 is not maintained now. There are fewer bugs on the main or dev-1.x branch.