Open
Description
As you stated, prior box will be clipped if it out side of image, but in your code :
prior_boxes.clamp_(0, 1) # (8732, 4)
prior_boxes still in yolo style (which mean [cx, cy, w, h]), but if we want to clip it, we will want some thing like this :
prior_boxes = pascalVOC_style(dboxes) #convert to (xmin, ymin, xmax, ymax)
prior_boxes.clamp_(0, 1)
prior_boxes = yolo_style(dboxes) #convert to (cx, cy, w, h)
Am I right ?
Metadata
Metadata
Assignees
Labels
No labels