Reference for ultralytics/models/yolo/obb/val.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/obb/val.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.yolo.obb.val.OBBValidator
Bases: DetectionValidator
A class extending the DetectionValidator class for validation based on an Oriented Bounding Box (OBB) model.
Example
Source code in ultralytics/models/yolo/obb/val.py
eval_json
Evaluates YOLO output in JSON format and returns performance statistics.
Source code in ultralytics/models/yolo/obb/val.py
init_metrics
Initialize evaluation metrics for YOLO.
plot_predictions
Plots predicted bounding boxes on input images and saves the result.
Source code in ultralytics/models/yolo/obb/val.py
postprocess
Apply Non-maximum suppression to prediction outputs.
Source code in ultralytics/models/yolo/obb/val.py
pred_to_json
Serialize YOLO predictions to COCO json format.
Source code in ultralytics/models/yolo/obb/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/obb/val.py
📅 Created 11 months ago
✏️ Updated 2 months ago