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

In examples, incorrect anchors preview #16

Open
VCasecnikovs opened this issue Apr 21, 2020 · 0 comments
Open

In examples, incorrect anchors preview #16

VCasecnikovs opened this issue Apr 21, 2020 · 0 comments

Comments

@VCasecnikovs
Copy link

From anchors you have format cthw, but matplotlib takes tlhw, so you should at first change datasize format.

def cthw2tlhw(boxes):
    tl = boxes[:,:2] - boxes[:,2:]/2
    return torch.cat([tl,boxes[:,2:]],1)
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