In the Fashionpedia dataset, boxes are specified in the following format: (x1, x2, y1, y2) which differs from the format required by YOLOS (x_center, y_center, width, height). The following functions will help us switch between two formats.
def xyxy_to_xcycwh(box):
x1, y1, x2, y2 = box.unb...