[英]Convert bounding box format
I want to use P-DESTRE dataset with retinaNet model我想将 P-DESTRE 数据集与retinaNet model 一起使用
But i have a problem in bonding box format since the dataset bounding box format is:但是我在绑定框格式方面遇到了问题,因为数据集边界框格式是:
x, y, h, w (Top left column, top left row, height, width) x、y、h、w(左上列、左上行、高度、宽度)
Where is written on that model bounding box format is (x1,y1,x2,y2) model 边界框格式是 (x1,y1,x2,y2)
Can you let me know how to convert the dataset format into the model format你能告诉我如何将数据集格式转换为 model 格式吗
The conversion you are asking about is completely straightforward:您询问的转换非常简单:
(x1,y1,x2,y2) = (x, y, x+w, y+h) (x1,y1,x2,y2) = (x, y, x+w, y+h)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.