Train workflow > Train Detector

Train Detector

Purpose

Use the Training panel and the Training Progress window to create and train object detectors.

Once training is complete, the detector can be saved and is available to be used in the Track workflow.

Protocol

Active Learning Protocol

Active Learning annotation is an iterative process in which a detector is incrementally improved by training a detector with current annotation data, testing the trained detector, correcting detection errors, annotating more data, and re-training the detector with the updated data.

  1. In the Train Detector step of the Train workflow, train a detector with existing annotation data:

    1. Select the object definition from the Detector dropdown menu.

    2. Click Train

  2. Finish training by doing one of the following in the Training Progress window:

    • Enable Auto Stop and wait for training to stop automatically.

    • Click Stop Training once True Positive, False Positive, and Regression Error have stabilized.

    • Allow the training process to end once the number of training iterations or epochs defined in the Advanced settings is reached.

  3. Close the Training Progress window.

  4. Use the trained detector to perform object detection on a new frame:

    1. Select a frame by using the video playback controls.

    2. Click Detect Object
  5. Return to the Annotate Data step of the Train workflow and do any of the following annotation edits:

    • Select incorrect detections and delete them by pressing Delete on the keyboard.

    • For single point annotations only, move them to a new location or re-size them.

    • Click Start Annotation and annotate any missed objects.

  6. Repeat steps 1-5 to incrementally increase the amount of training data and improve detector performance.

Detector

New detector

To create a new detector:

  1. Select New from the Detector dropdown menu.

  2. Select the object definition from the Target Object dropdown menu.

  3. Click Create

  4. In the New Detector dialog window, type in the desired name then click OK

Existing detector

Select an existing detector from the Detector dropdown menu to continue training.

Detector functions

  • Detector: From the dropdown menu, choose New to create a new detector or choose an existing detector to continue training.

  • Target Object: Choose the target object type for the new detector from the dropdown menu. If using an existing detector, the Target Object will automatically populate with the object associated with that detector.

  • Create Click to create the new detector.

  • Delete Click to delete the detector selected in the detector dropdown menu.

Training

Start training

  • Train Click to start training the selected detector.

  • Save Click to save the detector under its current name.

  • Save As Click to save the detector under a different name.

  • Input Mode: Choose Greyscale or RGB for the type of image sequence being used.

  • Training Region: Choose a training region from the dropdown menu: all annotated labels in an image, an individual label within an image, or the full image.

Stop training

Training can be stopped manually or automatically. See Training Progress window.

  • Stop Training Click to immediately stop the training process. It is recommended to stop the training process once True Positive, False Positive, and Regression Error have stabilized.
  • Auto Stop: Check the box to automatically stop training once mAP50 performance has converged.

  • If training is not stopped manually, and Auto Stop is not enabled, training will terminate after the number of training iterations or epochs defined in the Advanced settings is reached.

Test detector

Once the training session is finished, you can test how well the detector works in the current frame using Detect Point or Detect Object:

  • Detect Point Click to show only individual keypoints as they are detected. The graphical objects created cannot be edited nor can they be used for further training.

  • Detect Object Click to perform point and connection detection. Detected objects can be edited by the user then used for further training. (See Active Learning).

  • Clear Detection Click to remove the object or point detections.

  • Threshold: Use the slider to adjust the threshold for excluding less likely detections.
  • IoU Threshold: The Intersection over Union (IoU) threshold defines the minimum overlap required between two object bounding boxes to consider them as referring to the same object. This threshold is used during the non-maximum suppression (NMS) step to filter redundant detections.

    • Lower values (e.g., 0.3): More aggressive suppression with fewer overlapping boxes retained. This reduces duplicate detections but risks removing distinct, nearby objects.

    • Higher values (e.g., 0.7): Less aggressive suppression with more overlapping boxes retained. This can preserve closely spaced objects but may leave duplicate detections.

Settings

The following sections contain additional configuration options. Contact Technical Services for help with these settings by completing the Request Support form.

Classifier Design

Training System

Augmentation

Advanced

Training progress window

Object detectors perform two functions: classification and regression. Classification determines if something is a target object and regression determines the location of the object. The training progress window provides real-time feedback on the status and quality of detector training. It enables users to monitor detection performance, classification behavior, regression accuracy, and overall training progress. Training can be stopped manually at any time, or automatically when training performance stabilizes.

mAP50 (percent): This graph shows mAP50, a standard metric that summarizes object detection quality.

  • mAP50 measures how accurately the objects are detected and ranks its predictions.

  • A detection is considered correct if its predicted location overlaps a true object by at least 50%.

  • The curve shows how mAP50 evolves as training progresses.

    • A rising curve indicates improving detection performance.

    • A flat or oscillating curve suggests the model is approaching convergence.

    • Small fluctuations are normal during training.

Point Classification Rate (percent): This graph reports classification-related statistics for detected objects.

  • Class Error: The raw classifier error.

  • True Positive: The fraction of ground-truth objects correctly detected.

  • False Positive: The fraction of detections that do not correspond to a real object.

Point Regression (pixels): This graph shows the regression accuracy.

  • Regression Error: Measures how accurately the model predicts object size and position.

It is recommended to terminate the training process by clicking Stop Training once True Positive, False Positive, and Regression Error have stabilized.

Progress: Status bar indicates how far training has progressed.

  • Overall Training: The percentage of training that has been performed.

Training:

  • Stop Training Click to immediately stop the training process. It is recommended to stop the training process once True Positive, False Positive, and Regression Error have stabilized.

  • Auto Stop: Check the box to automatically stop training once mAP50 performance has converged.

  • Min mAP50 Delta: The smallest improvement in mAP50 considered meaningful.

    If mAP50 does not improve by at least the specified delta over the selected window, performance is considered converged and training is automatically stopped.

  • Window Size: Number of recent epochs over which improvement is evaluated.