ObjectDetection icon indicating copy to clipboard operation
ObjectDetection copied to clipboard

In examples, incorrect anchors preview

Open VCasecnikovs opened this issue 4 years ago • 0 comments

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)

VCasecnikovs avatar Apr 21 '20 00:04 VCasecnikovs