open-mmlab / mmdetection3d

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

[Bug] /visualize_results.py use old mmengine ? #2820

Open ClementLeBihan opened 11 months ago

ClementLeBihan commented 11 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

sys.platform: linux Python: 3.8.12 (default, Oct 12 2021, 13:49:34) [GCC 7.5.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA RTX A3000 Laptop GPU CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.3, V11.3.109 GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 PyTorch: 1.11.0 PyTorch compiling details: PyTorch built with:

TorchVision: 0.12.0 OpenCV: 4.8.1 MMEngine: 0.10.1 MMDetection: 3.2.0 MMDetection3D: 1.3.0+ spconv2.0: False

Reproduces the problem - code sample

python tools/misc/visualize_results.py ./configs/base/datasets/kitti-3d-car.py --result /tmp/tmp0jg9i1sk/results/pred_instances_3d.pkl --show-dir show-dir/

Reproduces the problem - command or script

python tools/misc/visualize_results.py ./configs/base/datasets/kitti-3d-car.py --result /tmp/tmp0jg9i1sk/results/pred_instances_3d.pkl --show-dir show-dir/

Reproduces the problem - error message

AttributeError: 'ConfigDict' object has no attribute 'data'` error

Additional information

Hi, I'm trying to use the visualize_result script from (https://mmdetection3d.readthedocs.io/en/latest/user_guides/visualization.html#results) but it seems that visualize_results.py isn't up to date to work with mmengine : I've got the AttributeError: 'ConfigDict' object has no attribute 'data' error. Is it normal ? What should I do ?

Best, Clément

hsekki commented 9 months ago

Any update on this issue? I am also encountering the problem. Thanks