↓ 1 callersFunctionscale_image > It takes a mask, and resizes it to the original image size Args: im1_shape: model input shape, [h, w] masks: [h, w, num]
ultralytics/yolo/utils/ops.py:263
↓ 1 callersFunctionxywh2ltwh > It converts the bounding box from [x, y, w, h] to [x1, y1, w, h] where xy1=top-left Args: x: the x coordinate of the center of the b
ultralytics/yolo/utils/ops.py:402
↓ 1 callersFunctionxyxy2ltwh > Convert nx4 boxes from [x1, y1, x2, y2] to [x1, y1, w, h] where xy1=top-left, xy2=bottom-right Args: x: the input tensor Return
ultralytics/yolo/utils/ops.py:418