yolo_v4.TensorToBBoxConverter

TensorToBBoxConverter inheritance diagram
- class savant.converter.yolo_v4.TensorToBBoxConverter(**kwargs)
- YOLOv4 output to bbox converter. - __call__(*output_layers, model, roi)
- Converts detector output layer tensor to bbox tensor. - Parameters:
- Returns:
- BBox tensor (class_id, confidence, xc, yc, width, height, [angle]) offset by roi upper left and scaled by roi width and height 
- Return type:
 
 - tensor_format: TensorFormat = 0
- Set to - CuPyto get the- output_layerstensors in the converter call on the GPU as a- cupy.ndarray. Or set to- NumPyto get tensors on the host as a- numpy.ndarray.