yolo_v8face.YoloV8faceConverter

YoloV8faceConverter inheritance diagram
- class savant.converter.yolo_v8face.YoloV8faceConverter(confidence_threshold=0.6, nms_iou_threshold=0.5, **kwargs)
YOLOv8face output to bbox and landmarks converter.
- __call__(*output_layers, model, roi)
Converts detector output layer tensor to bbox tensor and additional attributes (landmarks).
- Parameters:
- Returns:
a combination of
BaseObjectModelOutputConverterandBaseAttributeModelOutputConverteroutputs:BBox tensor
(class_id, confidence, xc, yc, width, height, [angle])offset by roi upper left and scaled by roi width and height,list of attributes values with confidences
(attr_name, value, confidence)
- Return type:
- tensor_format: TensorFormat = 0
Set to
CuPyto get theoutput_layerstensors in the converter call on the GPU as acupy.ndarray. Or set toNumPyto get tensors on the host as anumpy.ndarray.