Trainer

How Trainer creates tasks, trains a model, and prepares output files

Run one training cycle and find its ONNX export

Trainer builds a dataset from completed annotation tasks, runs YOLO and exports a model. Start with one local cycle. That way you can look at each stage and its output before you turn on repeating.

You need YoloEase 2, prerequisites that pass the check, source frames that can be read, and at least one task saved with Finish Job. The dataset needs at least one training image and one validation image, with real examples of your classes. Label names and unaccepted suggestions are not training data.

Trainer panel with the Batch size slider and Create Task button.

Run locally

  1. Open Settings → Training settings and check the values. The table shows the defaults of a new project. An existing project may have other values saved.
SettingValue and purpose
Yolo8/10+ base modelyolo11s.pt. It is taken from the model cache and downloaded if missing. To train from your own weights, select a compatible .pt.
Epochs50, the number of epochs requested.
Model Size640, passed as imgsz.
Additional argumentsEmpty by default. For example, device=cpu explicitly selects CPU.
Max CPU CoresSets NUM_THREADS for the child process. 0 means Any. It does not limit the load on the whole machine.
  1. In Trainer, select Local Training, Run once and Train/Validation % split = 80%, then click Start automatic training. This runs the local YOLO CLI. The dataset is not uploaded to Colab.
  2. Watch the timeline and expand the stage output. Trainer refreshes the data and available predictions, applies enabled augmentations, prepares the dataset, trains and exports. Before the first model exists, predictions are skipped.

Epoch progress and command output from an earlier local run

  1. Wait until training and export succeed. open... selects the model in its output folder. Cycle completed also appears after an error or a cancel, so it is not a sign of success.

Opening the model file from a successful result

  1. Look at the .onnx, the .pt weights and results.csv/results.png. Keep the .pt for training and use the compatible ONNX in EyeAuras. YoloEase may rename the ONNX after the project, base model and run.

The results folder contains best.pt, last.pt and a separate file of type ONNX File.

A typical result inside the working folder:

text
datasets/<run-id>/
  data.yaml
  cvataat.json
  train/images, train/labels
  valid/images, valid/labels
  test/images, test/labels
  runs/train/weights/best.pt
  runs/train/weights/last.pt
  runs/train/results.png
  runs/train/results.csv
  runs/train/weights/<project-base-model-run>.onnx

The current converter gives the test split 0 images. Its folders and YAML entry are still created, but this is not a separately evaluated test set. Dataset images can be symbolic links into the working storage, so copying data.yaml alone does not give you a portable dataset. best.pt and last.pt are two different checkpoints, not two ready ONNX files.

Control the next cycle and task

ControlEffect
Start automatic training / Stop automatic trainingStart a cycle / ask it to stop. Wait until the running work finishes before you start again. Some work does not stop at once.
Run onceStop after one cycle, even a failed one.
Run until stoppedRepeat until you stop it. If the project has not changed, a pass can skip training and not make another model.
Create TaskPick a new annotation batch and open it.
Annotate Task / task listOpen an unfinished task or choose a specific one. All tasks also shows completed tasks.
RefreshUpdate project files, tasks, models and related state.
ClearClear the timeline. Weights and annotation are not deleted.
Batch sizePercentage of files not yet assigned to tasks, initially 5%. The rounded file count is shown next to it. This is not YOLO's training batch. With few files, raise it until the count is above zero.
Train/Validation % splitInitially 80% for training, the rest for validation. On small datasets the counts are rounded.

For 10 unassigned images, 50% gives a task of 5. Start with 5–10 frames annotated by hand. Make tasks bigger only after you have checked that suggestions help. See the complete workflow.

File selection, predictions and active learning
SettingBehaviour
File pick strategy → Annotated-firstTakes unassigned files that have predictions first, then fills the rest at random. It does not pick files by how wrong the model is.
File pick strategy → RandomPicks at random from the remaining files.
Prediction strategy → UnannotatedPredicts on files not yet assigned to any task. This is not the same as every frame without boxes.
All filesPredicts on all project files. This can take more work.
DisabledSkips new predictions. Existing results can still be used.
Annotated files → Include/ExcludeInclude or exclude files already assigned to tasks in the displayed prediction statistics.
Threshold → Global/Per LabelOne confidence threshold or a separate one per class for selecting predictions. Initial confidence is 25%, prediction IoU 70%.

Predictions available before selecting another annotation task

These settings help pick frames and make annotation suggestions. They are separate from the thresholds of the model loaded in EyeAuras. A model score is not a measured chance that an action is right. Check predictions before Finish Job. Every training run starts from the selected base model. A new cycle does not continue from the previous checkpoint. If you want that, select that compatible .pt yourself.

Splits, class names and metrics

The converter splits images in the order it receives them. It does not shuffle them or balance classes. Each non-zero part first gets at least one image, then the rest is distributed. Check the real counts and keep separate scenes for validation: near-identical frames can make the result misleading.

Class names and indices in data.yaml come from the names found in the annotation, not from the project's LabelId values. An empty frame in a completed task gets an empty label file. Keep names consistent, and do not carry class indices from one model to another without checking their names metadata.

MetricMeaning
precisionShare of predicted detections that are correct on validation data.
recallShare of labelled objects that were found.
mAP50Detection score at IoU 0.5.
mAP50-95Score across a stricter range of IoU thresholds.
train/val lossTraining and validation loss. It is not a percentage of failed clicks.

Metrics from an earlier training run Metrics from another demonstration generation

Compare your models on images that were not used for training. Look at the false detections and missed objects, not only at the summary charts.

Commands, devices and cloud preparation

YoloEase builds a local command like this and fills in the paths itself. You do not need to run it by hand:

yolo task=detect mode=train plots=true project="<run-folder>/runs" model="<base-weights>" data="<data.yaml>" imgsz=640 epochs=50
Additional argumentMeaning
device=cpuExplicit CPU. If you do not set a device, YoloEase checks PyTorch CUDA and adds device=0 when it is available.
workers=0Added when you do not set workers. An explicit value such as workers=2 wins.
batch=8, patience=20Ultralytics training batch and early stopping. They have nothing to do with the annotation Batch size.
cache=false, amp=falseUltralytics cache and mixed-precision options.
seed=0An explicit training seed. It does not make YoloEase's dataset converter shuffle.

Arguments can conflict with the UI settings or work differently in other Ultralytics versions. Read the actual command and the error output. After training, a separate yolo export runs with format=onnx and opset=17. Changing the extension of a .pt file does not convert it. Check the ONNX compatibility requirements.

Google Colab prepares a dataset ZIP and a notebook link. You upload the data, run the notebook and bring the model back yourself. Choosing this mode does not start cloud training. Check that the ZIP holds real images and labels, not just local links. Archive preparation changed after v2.0.90: the later source revision 946be263 writes file contents into the archive. If you run the released v2.0.90 build, look inside the ZIP before you transfer it.

Integration · Diagnostics