-
Notifications
You must be signed in to change notification settings - Fork 22
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
Inconsistency with inference angles #13
Comments
I am not sure I get your point. You may refer to the following points for reference.
|
Thank you for your excellent work! I've learnt a lot from it! |
To clarify, for the example label "0 0.255303 0.319417 0.093962 0.099477 0.493946 -0.869493", it represents cx, cy, width, height, cosine_theta, sine_theta respectively, so the last two numbers represent cosine_theta and sine_theta. For your own dataset, the label formats should be consistent with the examples provided, i.e. cx, cy, width, height, cosine_theta, sine_theta. |
Sorry I haven't gotten back on this. |
few days ago, I have similar confusion. I hope the following code would help you. theta = math.acos(cos)*180/np.pi求theta:math.acos(cos)* 180/np.pi求sin:math.sin(theta* np.pi/180)By the way, I want to use my own label like (445.8136 222.3948 120.8183 123.9594), which means cx, cy, w, h in pixel, so I wonder how to normalize it? |
Hi!
I was using this project to train a custom dataset but realized that there were inconsistencies in the angle given by cos theta and sin theta values in the outputted labels.
So in case I was making an error formatting my own labels, I ran rotate_detect.py on the UCAS-AOD images. Below is the outputted label of 1103.png:
Recalculating the arccos and arcsin of the cos theta and sin theta values still seems to give different values of the angle. Any idea why this is?
Thanks
The text was updated successfully, but these errors were encountered: