open-mmlab / mmdetection3d

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

AttributeError: 'ConfigDict' object has no attribute 'data', KeyError: 'data' #3008

Open BaroRai opened 4 months ago

BaroRai 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

sys.platform: win32 Python: 3.8.19 (default, Mar 20 2024, 19:55:45) [MSC v.1916 64 bit (AMD64)] CUDA available: True MUSA available: False numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 3070 Laptop GPU CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8 NVCC: Cuda compilation tools, release 11.8, V11.8.89 MSVC: Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64 GCC: n/a PyTorch: 2.0.0 PyTorch compiling details: PyTorch built with:

TorchVision: 0.15.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

I used the built in methods in following field is command:

Reproduces the problem - command or script

python ./tools/misc/visualize_results.py ./configs/base/datasets/kitti-3d-3class.py --result C:\Users\danie\AppData\Local\Temp\tmpyz7mcakv\results\pred_instances_3d.pkl --show-dir ./outputs/test

Reproduces the problem - error message

Traceback (most recent call last): File "E:\Conda\envs\mmdet3d_env\lib\site-packages\mmengine\config\config.py", line 109, in getattr value = super().getattr(name) File "E:\Conda\envs\mmdet3d_env\lib\site-packages\addict\addict.py", line 67, in getattr return self.getitem(item) File "E:\Conda\envs\mmdet3d_env\lib\site-packages\mmengine\config\config.py", line 138, in getitem return self.build_lazy(super().getitem(key)) File "E:\Conda\envs\mmdet3d_env\lib\site-packages\mmengine\config\config.py", line 105, in missing raise KeyError(name) KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./tools/misc/visualize_results.py", line 50, in main() File "./tools/misc/visualize_results.py", line 30, in main cfg.data.test.test_mode = True File "E:\Conda\envs\mmdet3d_env\lib\site-packages\mmengine\config\config.py", line 1499, in getattr return getattr(self._cfg_dict, name) File "E:\Conda\envs\mmdet3d_env\lib\site-packages\mmengine\config\config.py", line 113, in getattr raise AttributeError(f"'{self.class.name}' object has no " AttributeError: 'ConfigDict' object has no attribute 'data'

Additional information

I am using dataset kitty, but I have a problems with whole visualization procedure, also when I ran test on 3dssd model, I was not able to use atrribute --show to display whats happening.

Gaviaa commented 3 months ago

Hello, I have encountered the same problem. Have you solved it?