Reference for ultralytics/models/yolo/pose/val.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/pose/val.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.yolo.pose.val.PoseValidator
Bases: DetectionValidator
A class extending the DetectionValidator class for validation based on a pose model.
Example
Source code in ultralytics/models/yolo/pose/val.py
eval_json
Evaluates object detection model using COCO JSON format.
Source code in ultralytics/models/yolo/pose/val.py
get_desc
Returns description of evaluation metrics in string format.
Source code in ultralytics/models/yolo/pose/val.py
init_metrics
Initiate pose estimation metrics for YOLO model.
Source code in ultralytics/models/yolo/pose/val.py
plot_predictions
Plots predictions for YOLO model.
Source code in ultralytics/models/yolo/pose/val.py
plot_val_samples
Plots and saves validation set samples with predicted bounding boxes and keypoints.
Source code in ultralytics/models/yolo/pose/val.py
postprocess
Apply non-maximum suppression and return detections with high confidence scores.
Source code in ultralytics/models/yolo/pose/val.py
pred_to_json
Converts YOLO predictions to COCO JSON format.
Source code in ultralytics/models/yolo/pose/val.py
preprocess
Preprocesses the batch by converting the 'keypoints' data into a float and moving it to the device.
Source code in ultralytics/models/yolo/pose/val.py
save_one_txt
Save YOLO detections to a txt file in normalized coordinates in a specific format.
Source code in ultralytics/models/yolo/pose/val.py
update_metrics
Metrics.