hlsheng1 / RDIoU

"Rethinking IoU-based Optimization for Single-stage 3D Object Detection", ECCV2022 accept!
MIT License
128 stars 12 forks source link

NaN loss when trainign 3-class detectors on waymo datast. #15

Open Eaphan opened 1 year ago

Eaphan commented 1 year ago

Thanks for your sharing. When I tried to train the RDIoU for 3 classes on Waymo dataset, I met the error of NaN loss. /data/yfzhang/workspace/OpenPCDet/pcdet/models/dense_heads/anchor_head_rdiou_3cat.py(304) if rpn_loss.isnan(): print(cls_loss) print(box_loss) pdb.set_trace() Do you have any suggestions? Or have you ever tried to train RDIoU for the 3 classes? How about the performance? Thanks for your reply in advance.

hlsheng1 commented 1 year ago

Hi, changing the clamp max value for l,w,h can solve this issue.

Like l1, w1, h1 = torch.clamp(l1, max=3), torch.clamp(w1, max=3), torch.clamp(h1, max=3)

hlsheng1 commented 1 year ago

Hi, the clamp operation must be conducted before exp operation.