Skip to content

In examples, incorrect anchors preview #16

@VCasecnikovs

Description

@VCasecnikovs

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions