Sense-GVT / Fast-BEV

Fast-BEV: A Fast and Strong Bird’s-Eye View Perception Baseline
Other
635 stars 93 forks source link

why set direction offset to pi/4? #88

Open wendalegood opened 3 months ago

wendalegood commented 3 months ago

Hello, is anybody know why set direction offset to pi/4, and subtract it, what dose this mean, as follows:

first subtract self.dir_offset and then add it back again, what's the purpose of this trick, thanks.

dir_rot = limit_period(bboxes[..., 6] - self.dir_offset, self.dir_limit_offset, np.pi) bboxes[..., 6] = ( dir_rot + self.dir_offset + np.pi * dir_scores.to(bboxes.dtype))