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

Error when preprocess test dataset #25

Open
KaiWU5 opened this issue Aug 13, 2020 · 2 comments
Open

Error when preprocess test dataset #25

KaiWU5 opened this issue Aug 13, 2020 · 2 comments

Comments

@KaiWU5
Copy link

KaiWU5 commented Aug 13, 2020

When I use the command "python lib/core/data_preprocessor.py --cfg configs/kitti/3dssd/3dssd.yaml --split testing --img_list test", I got the following error.
AttributeError: 'KittiDataset' object has no attribute 'mixup_db_class'

With debugging, I found that mixup_db_class only will be activated by ['train', 'val', 'trainval'] modes. So May I ask for how to fix this and what is the intension of using mixup_db_class? Code reading is painful, please help out.

@zhufeng888
Copy link

I have the same issue.

@zhufeng888
Copy link

I have solved the problem to add
if self.img_list in ['train', 'val', 'trainval']:
before
mixup_label_dict = dict([(cls, []) for cls in self.mixup_db_class])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants