rapid.TensorToBBoxConverter
- class savant.converter.rapid.TensorToBBoxConverter(confidence_threshold=0.4, nms_iou_threshold=0.5, top_k=70)
RAPiD output to bbox converter.
- Parameters:
- __call__(*output_layers, model, roi)
Converts RAPiD detector output layer tensor to bbox tensor.
- Parameters:
- Returns:
BBox tensor (class_id, confidence, xc, yc, width, height, angle) in roi scale
- Return type:
- tensor_format: TensorFormat = 0
Set to
CuPy
to get theoutput_layers
tensors in the converter call on the GPU as acupy.ndarray
. Or set toNumPy
to get tensors on the host as anumpy.ndarray
.