Closed triwahyuu closed 4 years ago
Got error when trying to train using FrontalFDDBDataset with 1 class
File "/home/nodeflux/.virtualenvs/vortex/lib/python3.6/site-packages/vortex/development/utils/data/collater/detr.py", line 46, in create_collater
return DETRColatte(*args, **kwargs)
File "/home/nodeflux/.virtualenvs/vortex/lib/python3.6/site-packages/vortex/development/utils/data/collater/detr.py", line 9, in __init__
for k,val in dataformat.items()}
File "/home/nodeflux/.virtualenvs/vortex/lib/python3.6/site-packages/vortex/development/utils/data/collater/detr.py", line 9, in <dictcomp>
for k,val in dataformat.items()}
AttributeError: 'NoneType' object has no attribute 'items'
I think the problem is the collater need to handle if the data_format is None, as in the case of landmark detection where the class_label is None ( means the dataset only have 1 class )
fixed in https://github.com/nodefluxio/vortex/pull/43/commits/55d59038dd4cec7f86f7d85ab8b8be7a2dced7cd
okay
LGTM
ready to be merged
Type of changes
Please check the type of change your PR introduces: - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): closes #25 ## Checklist[Unreleased]
Changelog