Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Itay-Krispin opened this issue Jul 4, 2024 · 12 comments
Open

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

Itay-Krispin opened this issue Jul 4, 2024 · 12 comments
Labels

Comments

@Itay-Krispin
Copy link

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
Copy link
Author

Hi,
Any ideas?

@Zakaria1405
Copy link

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
Copy link

ItayKrispin commented Jul 22, 2024

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.

Copy link

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

@github-actions github-actions bot added the stale label Sep 15, 2024
@yyxmoon123
Copy link

how procees

@github-actions github-actions bot removed the stale label Sep 26, 2024
@matren12138
Copy link

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

@Petros626
Copy link

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

@ItayKrispin
Copy link

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.

@Petros626
Copy link

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

Copy link

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

@github-actions github-actions bot added the stale label Nov 12, 2024
@kistothm
Copy link

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.

@github-actions github-actions bot removed the stale label Nov 15, 2024
Copy link

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

@github-actions github-actions bot added the stale label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants