importshutilimportnumpyasnpimportcv2importtorch#坐标转换,原始存储的是YOLOv5格式# Convert nx4 boxes from [x, y, w, h] normalized to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-rightdefxywh2xyxy(lb,w1,h1,img):forxinlb:# 需要自己修改labels=['no mask','mask']# 根据标签数量...