Open ScriptumVeritas opened 4 months ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: chbehrens
:x: Fabian
Motivation
In case of no ground truth, the HungarianAssigner3D in the BEVFusion project returns 'None' instead of a tensor. This will rise an error in the following code of the transfusion_head.py running: max_overlaps=torch.cat([res.max_overlaps for res in assign_result_list]),
Modification
return a tensor with zeros for max_overlaps if there is no ground truth or no bounding boxes. In case both are 0, an empty tensor is returned which still provides better compatibility
Use cases (Optional)
no error in cases where no ground truth or no bounding box is given.