YOLO V8 Pose
Trained on
MS-COCO Data
YOLO (You Only Look Once) Version 8 by Ultralytics is the latest version of the YOLO models. Just like its predecessor, YOLO Version 5, YOLO Version 8 is an anchor-free model that was trained with mosaic augmentation. It features the use of new "C2f" blocks, which employ additional dense connections between bottleneck modules. Although YOLO models are historically object detection models, these models perform both object detection and human joint keypoint regression at the same time.
Examples
Resource retrieval
Get the pre-trained net:
Pick a non-default net by specifying the parameters:
Evaluation function
Write an evaluation function to scale the result to the input image size and suppress the least probable detections:
Basic usage
Obtain the detected bounding boxes with their corresponding classes and confidences as well as the locations of human joints for a given image:
The "ObjectDetection" key contains the coordinates of the detected objects as well as their confidences and classes:
The "KeypointConfidence" key contains the confidences for each person’s keypoints:
Visualize the pose keypoints, object detections and human skeletons:
Rescale the "KeyPoints" to the coordinates of the input image and visualize them scaled and colored by their probability measures:
Rescale the bounding boxes to the coordinates of the input image and visualize them scaled by their "Objectness" measures:
Get the size of the ONNX file:
Check some metadata of the ONNX model: