open-mmlab / OpenPCDet

OpenPCDet Toolbox for LiDAR-based 3D Object Detection.
Apache License 2.0
4.57k stars 1.28k forks source link

'EasyDict' object has no attribute 'BACKUP_DB_INFO' #1631

Open Itay-Krispin opened 2 months ago

Itay-Krispin commented 2 months ago

Hi,

I have worked with the framework before and I remeber encountering this problem below but I can't recall how did I solve it :( I have created the dbinfos successully and it seems that all the paths are correct (see screen shots below) so I am not sure what's the issue. Does someone know?

2024-07-04 12:43:20,294 INFO ----------- Create dataloader & network & optimizer ----------- Traceback (most recent call last): File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/train.py", line 277, in main() File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/train.py", line 145, in main train_set, train_loader, train_sampler = build_dataloader( ^^^^^^^^^^^^^^^^^ File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/init.py", line 69, in build_dataloader dataset = all[dataset_cfg.DATASET]( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/custom/custom_dataset.py", line 21, in init super().init( File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/dataset.py", line 31, in init self.data_augmentor = DataAugmentor( ^^^^^^^^^^^^^^ File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/augmentor/data_augmentor.py", line 24, in init cur_augmentor = getattr(self, cur_cfg.NAME)(config=cur_cfg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/augmentor/data_augmentor.py", line 40, in gt_sampling db_sampler = database_sampler.DataBaseSampler( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tauproj1/Innoviz_Project/OpenPCDet-master_New_copy/tools/../pcdet/datasets/augmentor/database_sampler.py", line 35, in init sampler_cfg.DB_INFO_PATH[0] = sampler_cfg.BACKUP_DB_INFO['DB_INFO_PATH'] ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'EasyDict' object has no attribute 'BACKUP_DB_INFO'

image

image

Itay-Krispin commented 1 month ago

Hi, Any ideas?

Zakaria1405 commented 1 month ago

are you working with mini nuscenes_dataset? if yes go to: OpenPCDet/tools/cfgs/dataset_configs/nuscenes_dataset.yaml and change the version to : VERSION: 'v1.0-mini' Otherwise always check the direktory to your .pkl file

ItayKrispin commented 1 month ago

are you working with mini nuscenes_dataset? if yes go to: OpenPCDet/tools/cfgs/dataset_configs/nuscenes_dataset.yaml and change the version to : VERSION: 'v1.0-mini' Otherwise always check the direktory to your .pkl file

Thanks for replying. No I am working with a custom dataset but I figured out the problem :)

The issue can be closed now.