Skip to content

Scaling in correct_yolo_boxes seems not required #1

@billysz

Description

@billysz

Hi,

Since (xmin, xmax, ymin, ymax) are already normalized values, I think no need to re-scale them any more, just applying to the original image should be fine, as following:
boxes[i].xmin = int((boxes[i].xmin) * image_w)
boxes[i].xmax = int((boxes[i].xmax) * image_w)
boxes[i].ymin = int((boxes[i].ymin) * image_h)
boxes[i].ymax = int((boxes[i].ymax) * image_h)

Regards,

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