def bbox_to_array(arr, label=0, max_bboxes=64, bbox_width=16):
 arr = pad_bbox(arr, max_bboxes, bbox_width)
 return arr[np.newaxis, :, :]

def bbox_to_array ( arr , label = 0 , max_bboxes = 64 , bbox_width = 16 ) : arr = pad_bbox ( arr , max_bboxes , bbox_width ) return arr [ np . newaxis , : , : ]
converts a 1-dimensional bbox array to an image-like 3-dimensional array chw array .