PaddlePaddle / Paddle3D

A 3D computer vision development toolkit based on PaddlePaddle. It supports point-cloud object detection, segmentation, and monocular 3D object detection models.
Apache License 2.0
567 stars 141 forks source link

Why rot_y multiply by -1 in flipping augumentation? #461

Open nannanmath opened 6 months ago

nannanmath commented 6 months ago

I found the code like: https://github.com/PaddlePaddle/Paddle3D/blob/3259dabef7d102fe548c1c1ced9152ad32f3e19b/paddle3d/transforms/target_generator.py#L278-L280 Why the rot_y multply by -1 after horizontal flipping augumentation? I feel the rot_y should be:

if rot_y < 0:
  rot_y = -np.pi - rot_y
else:
  rot_y = np.pi - rot_y

Is it correct or I'm missing something?