OpenPCDet icon indicating copy to clipboard operation
OpenPCDet copied to clipboard

'EasyDict' object has no attribute 'BACKUP_DB_INFO'

Open Itay-Krispin opened this issue 1 year ago • 9 comments

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 avatar Jul 04 '24 10:07 Itay-Krispin