Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why set direction offset to pi/4? #88

Open
wendalegood opened this issue Aug 8, 2024 · 0 comments
Open

why set direction offset to pi/4? #88

wendalegood opened this issue Aug 8, 2024 · 0 comments

Comments

@wendalegood
Copy link

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant