open-mmlab / mmdetection3d

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

get_flops.py throws error for Pointpillars #3005

Closed cadip92 closed 3 months ago

cadip92 commented 4 months ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmdetection3d

Environment

/bin/sh: 1: gcc: not found sys.platform: linux Python: 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0] CUDA available: False MUSA available: False numpy_random_seed: 2147483648 GCC: n/a PyTorch: 2.1.0 PyTorch compiling details: PyTorch built with:

TorchVision: 0.16.0 OpenCV: 4.10.0 MMEngine: 0.10.4 MMDetection: 3.3.0 MMDetection3D: 1.4.0+962f093 spconv2.0: False

Reproduces the problem - code sample

Error getting flops and model parameters for pointpillars

Reproduces the problem - command or script

python tools/analysis_tools/get_flops.py configs/pointpillars/pointpillars_hv_secfpn_sbn-all_8xb4-2x_nus-3d.py --modality point

Reproduces the problem - error message

mmdetection3d/mmdet3d/models/dense_heads/anchor3d_head.py:94: UserWarning: dir_offset and dir_limit_offset will be depressed and be incorporated into box coder in the future warnings.warn( Traceback (most recent call last): File "tools/analysis_tools/get_flops.py", line 95, in main() File "tools/analysis_tools/get_flops.py", line 81, in main raise NotImplementedError( NotImplementedError: FLOPs counter is currently not supported for MVXFasterRCNN

Additional information

No response