↓ 2 callersFunctionconvert_bbox_to_z
Takes a bounding box in the form [x1,y1,x2,y2] and returns z in the form [x,y,s,r] where x,y is the center of the box and s is the scale/area an
segment/sort_count.py:80
↓ 2 callersFunctionconvert_x_to_bbox
Takes a bounding box in the centre form [x,y,s,r] and returns it in the form
[x1,y1,x2,y2] where x1,y1 is the top left and x2,y2 is the bot
segment/sort_count.py:92
↓ 2 callersFunctionprocess_batch
Return correct prediction matrix
Arguments:
detections (array[N, 6]), x1, y1, x2, y2, conf, class
labels (array[M, 5]), c
segment/val.py:90
↓ 2 callersFunctionscale_masks
img1_shape: model input shape, [h, w]
img0_shape: origin pic shape, [h, w, 3]
masks: [h, w, num]
resize for the most time
utils/segment/general.py:69