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 w and h need to pow()? #6

Open
lunalulu opened this issue May 21, 2019 · 0 comments
Open

why w and h need to pow()? #6

lunalulu opened this issue May 21, 2019 · 0 comments

Comments

@lunalulu
Copy link

When parsing the network output, why are the width and height of key points calculated as follows:
output[:, :, :, 4:96:6] = output[:, :, :, 4:96:6].pow(2) * cfg.IMG_SIZE output[:, :, :, 5:96:6] = output[:, :, :, 5:96:6].pow(2) * cfg.IMG_SIZE
why not below:
output[:, :, :, 4:96:6] = output[:, :, :, 4:96:6] * cfg.IMG_SIZE output[:, :, :, 5:96:6] = output[:, :, :, 5:96:6]* cfg.IMG_SIZE
thanks~

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