Applies to v2.0.0-beta.4. For the stable v1.1.2 procedure, see the User Guides.
Run the YORU’s Evaluation sub-module.
Load a project config.yaml file and a model.
The model is in the
exp_<model>/folder, nottrain/(changed in Beta 2).
- YOLOv5:
<project>/exp_yolov5s/weights/best.pt- YOLO / RT-DETR:
<project>/exp_yolo11s/weights/best.pt- YOLO OBB:
<project>/exp_yolo11s-obb/weights/best.pt- torchvision:
<project>/exp_fasterrcnn/fasterrcnn_best.ptRepeat training runs go to
exp_yolo11s2,exp_yolo11s3, … so make sure you pick the run you mean.
Extract frames for labeling using Grab GUI.
I. Select a video in the Video file path in the Grab GUI.
Ⅱ. Select Save directory. (Basically, all_label_images in the project folder is a good choice.)
Ⅲ. Decide the grabbed frame name.
IV. Cut out the screenshot.
i. Play video with Streaming movie.
ii. Arrow keys to go forward and back.
iii. Grab Current Frame or Alt key to save frame.
Images that are not used for creating a model are better. Automatic Extraction (new in Beta 3) can pick them for you — set the Video range to a part of the video that the training frames did not come from. See Automatic Extraction.
Left / Right / Alt only fire when the YORU window has focus, and grabbing before an output folder has been chosen no longer crashes (changed in Beta 2).
Push “Run LabelImg” and label the frames.
Changed in Beta 3: this button opens YORU’s bundled LabelImg, like the Training GUI does. It opens the evaluation images in the project’s format — YOLO-OBB for an OBB project — so OBB evaluation images can now be labelled. Click to Box is available here too.
It is easier to label if Auto Save mode is turned on in the View tab.
Push the “Prediction” button.
For an OBB model, Prediction writes all four corners of each box to
_yolo.txt(Beta 4). Files written by earlier versions hold only the upright box, so run Prediction again on an old evaluation dataset.
Push the “Calculate APs” button.
YORU calculates APs and IOUs. See How AP is calculated below.
Prediction and the AP calculation run in the background (Beta 4), so Quit can be pressed while they run.
null and is left out of the mAP. Overall precision and recall need a same-class match at IoU 0.50.Figures from Beta 4 are not comparable with earlier ones. Earlier versions sorted predictions by class ID instead of confidence, never ranked them across images, built the precision envelope on a reversed array, counted a prediction as a false positive when its best match was taken even if another free box overlapped, and compared OBB boxes by their upright envelopes. They can also differ from the validation score a training backend prints, because YORU evaluates the boxes its detector keeps after its own confidence and NMS settings.
.jpeg and upper-case extensions are found, blank label lines are skipped, and an unreadable image gives a clear error.yoru.libs.file_operation_evaluation was removed — it was a duplicate of yoru.libs.file_operation_create_label. This only matters if you import YORU from your own scripts.