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

Hi, Any ideas?

Itay-Krispin avatar Jul 10 '24 11:07 Itay-Krispin

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

Zakaria1405 avatar Jul 22 '24 15:07 Zakaria1405

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.

ItayKrispin avatar Jul 22 '24 16:07 ItayKrispin

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 15 '24 02:09 github-actions[bot]

how procees

yyxmoon123 avatar Sep 25 '24 05:09 yyxmoon123

I had the same problem before as well, for me the reason seemed to be incomplete dataset

matren12138 avatar Oct 06 '24 05:10 matren12138

@ItayKrispin when you solved it, post a solution for others, this is a community.

Petros626 avatar Oct 12 '24 11:10 Petros626

Sorry guys haven’t seen the comments until now. In my case it turned out that my data folder wasn’t under the right parent directory… nothing special to contribute just an overlook by me.

ItayKrispin avatar Oct 12 '24 12:10 ItayKrispin

some additional hint, when using the debugger of vscode, make sure that the paths are correctly set. In this image you can see the false path, using a custom dataset.

image

Petros626 avatar Oct 12 '24 15:10 Petros626

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Nov 12 '24 01:11 github-actions[bot]

I had the same issue. I solved it by modifying the "DATA_PATH" in the kitti dataset config file. I set it from a relative path to the absolute path of the dataset.

kistothm avatar Nov 14 '24 15:11 kistothm

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 15 '24 02:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Dec 30 '24 02:12 github-actions[bot]

@kistothm so you mean something like /home/rlab10/OpenPCDet/data/zod ?

Petros626 avatar Nov 10 '25 14:11 Petros626