Open lih627 opened 5 years ago
the dir classifier only determine if rotation_z > 0 in ground-truth in lidar coordinate system. the box_preds[..., -1]
is prediction of rotation_z, if dir label of predicted rotation_z (box_preds[..., -1] > 0
) is different from dir classifier, this means we need to add pi to predicted rotation_z.
it should only be used when using sin rotation loss because e
and e + pi
generate same rot loss.
How can I fix this #350 ?
I am using the nuscenes dataset.
In the code in
voxelnet.py
for inference:I am not sure how the direction classification works.
Kitti
rotation_y
is between[-pi, pi]
. Ifrotation_y = pi/2
, does it means the car facing z-axis ( positive direction ) in camera coordinate system?Does direction classification classify that the car is face to me or away from me? For example, if the dir_reg is 1.0 (or -1.0 ) . what the difference in final direction between dir_cls =0 and dir_cls =1. Should I use function map the final direction in
[-pi, pi]
?Thanks a lot.