02

Quick Start: Your First Model Update

A follow-along guide for first-time users: choose a goal β†’ choose data and starting model β†’ AI update (auto-labeling and review) β†’ train β†’ check results (evaluation) β†’ deploy. See the linked sections for the details of each step.

The Whole Flow

Six steps. For the first time, try one lap with a small video or two.

StepWhat you doWhere
1Choose the goal(decision)
2Choose data and starting model[AI Update] > [New Training Request]
3AI update: auto-labeling and review[Labeling] screen
4Train[Train] in the labeling screen; progress in [AI Update]
5Check results (evaluation)[Datasets] > [Model Evaluation]
6Deploy the modelOnline: site delivery / Offline: automatic
Before You Start
Prepare a Studio account (ask the AI team) and the field videos (MP4/AVI) to train on. See Section 03 for access. For offline on-site work, first read the on-site procedure in Section 10.

Step 1. Choose the Goal

What you choose later depends on what you want to improve. First pick the closest goal in the table.

GoalRecommended dataStarting modelShared datasetResult
A. Reduce false positives/misses at one siteThat site's collected clips (false positives/misses)New model (from vunex-default), or continue that site's modelNot usedSite-specific model
B. Fit the site while keeping general accuracySite videos + shared datasetNew modelTrain togetherSite-specific model (keeps general objects)
C. Improve the shared full model (vunex-default)A dataset merging data from several sitesFrom the base modelAs neededShared model. Requestable only when the [Base model upgrade] checkbox appears for a system-organization account
D. Offline training on siteOnly that site's dataNew modelNot usedSite-specific model (auto-deployed from the training machine)
Once You Have Chosen
A and B run in the online Studio, D in the Studio on the on-site training machine, in the same way. C needs a system-organization account, so talk to the AI team first. This guide is written for A; differences for B, C and D are noted in each step.

Step 2. Choose Data and Starting Model

Choose the name, starting model and data in the [New Training Request] window. Training does not start here.

  1. Open [AI Update] in the left menu and click [New Training Request].
    The Update Request window opens.
    Figure 2-1. New training request window
    Figure 2-1. New training request window
  2. Enter the [Model name].
    Only letters, digits, hyphen (-) and underscore (_); names must be unique. A convention such as site_purpose_version makes models easy to find later.
  3. Choose the starting model.
    Create new model starts from the base model (vunex-default). Continue from existing model keeps what it already knows and trains further. For the first time, Create new model is recommended.
  4. Upload the videos to train on.
    You can upload several MP4/AVI files; videos over 90 MB or 60 s are split automatically. Instead of videos you can reuse a previously saved labeling set with [Select dataset].
    Figure 2-2. Filled window
    Figure 2-2. Filled window
  5. (Optional) select [Train with shared datasets].
    Select only when you want to keep general accuracy (goal B). It changes the training approach and time.
  6. Click [Draw boxes].
    You move to the labeling screen and the videos are prepared. If the button is disabled, check that the model name and videos (or a dataset) are both entered.
Starting Directly from Collected Videos
In [Collected Videos] select the clips and click [Send to Labeling] to open them in the labeling screen right away. Saving with [Save data] lets you reuse them via [Select dataset] next time (Section 07).

Step 3. AI Update: Auto-labeling and Review

The AI finds objects first and you fix the mistakes. Training quality is decided by this review.

  1. Click [Object Suggestion] at the top or press A.
    With several videos choose Current session only or All sessions. For the first time, try the current session only.
    Figure 2-3. Object suggestion window
    Figure 2-3. Object suggestion window
  2. Wait for the analysis to finish.
    When "Object suggestion completed" appears, boxes are shown on the video. [Save data] and [Train] are disabled while it runs.
    Figure 2-4. Labeling screen with boxes
    Figure 2-4. Labeling screen with boxes
  3. In the left class panel check only the classes to train on.
    Make sure the target you want to improve (e.g. the object that caused false positives) is included.
    Figure 2-5. Class panel
    Figure 2-5. Class panel
  4. Review the boxes while playing the video.
    Delete wrong boxes or change their class, and add missing objects with [Draw]. Link tracks when one object is split (Section 06).
  5. Exclude any range you do not want to train on.
    Drag the timeline to exclude a range, or exclude a whole session (Section 06).
  6. (Recommended) keep the reviewed result with [Save data].
    It stays in [Datasets] > My Datasets for reuse in the next training. Leaving without saving discards your work.
To Train Objects Outside the COCO 80 Classes
Object Suggestion finds only the COCO 80 classes. If you need to train a new object, add β‘  text-based (AI Search) or β‘‘ box-based (Apply to Entire Video) in the "Auto-label a New Class" sections right below, then review.
Do Not Skip the Review
Training on raw auto-labels teaches the AI its own mistakes. At least scan the boxes of the class you want to improve. Sessions without labels can be trained as "background", which helps suppress false positives.

Step 3 Extra. Auto-label a New Class (Text / Box Based)

Object Suggestion finds only the COCO 80 classes. To train other objects (e.g. a helmet, smoke, a specific machine), add a new class on top of the Object Suggestion result with AI Search (text) or Apply to Entire Video (box).

MethodUse whenInputScopeDetails
β‘  Text-based: AI SearchYou can describe the object in words and there are many of it in the videoEnglish text (e.g. red bicycle)Searches the whole video of the current sessionSection 06 "Class Search", "AI Search"
β‘‘ Box-based: Apply to Entire VideoHard to describe in words, or you want to pick one specific objectA box you draw + a class nameFollows the selected object through the whole videoSection 05 "Draw Boxes", "Apply to Entire Video"
Which One First
If there are many of one kind and the name is clear, β‘  text-based is faster. If the result is off or nothing is found, show a representative object yourself with β‘‘ box-based. You can use both on the same video.

β‘  Auto-label a New Class by Text (AI Search)

Type the object in English and the AI finds it across the whole video, creates boxes and adds a new class.

  1. Run Object Suggestion first.
    Object Suggestion handles the COCO 80 classes. AI Search is for adding other objects.
  2. Click [Search] in the toolbar or press Ctrl+F (or Ctrl+Space).
    The class search window opens.
    Figure 2-6. Search button in the toolbar
    Figure 2-6. Search button in the toolbar
  3. Type the object in English.
    Adding color or state helps, e.g. red bicycle, person wearing a helmet. If it matches no existing class, Search "term" with AI (Enter) appears; even when a class matches you can start with AI Search at the right of the input.
    Figure 2-7. Searching with AI
    Figure 2-7. Searching with AI
  4. Press Enter or click [AI Search] and wait for the results.
    Without closing the window you can enter more terms to run several searches at once. Progress (%) is shown per term and results are added about every 30 frames.
    Figure 2-8. AI Search in progress
    Figure 2-8. AI Search in progress
  5. Check the completion notice and the class panel.
    "term N annotations added" means the found boxes were created as new tracks, and a class not in the list is added to the class panel and checked for training.
  6. Review the result while scrubbing the video.
    Delete wrong boxes, or undo to the state before the search with Ctrl+Z.
NoticeMeaning
"term" N annotations addedOne or more found and added
No object found for "term"Zero results. Rephrase, or use β‘‘ box-based
"term" AI Search failedRequest error. Retry; if it repeats ask the AI team
Good to Know
The recognition confidence is fixed (0.3) and cannot be changed. You can stop with [Stop], A or Esc; results already received stay. [Save data] and [Train] stay enabled during a search, so save after all results arrive. Completion/failure notices are shown in Korean regardless of the screen language.

β‘‘ Auto-label a New Class by Box (Apply to Entire Video)

Draw a box on a representative object, give it a new class name, and let the AI follow that object through the whole video.

  1. Pause on a frame where the object for the new class is clearly visible.
    Draw mode is on by default (press D if it is off).
  2. Draw a box by dragging over the object.
    Fit the box tightly around the object. Drag at least 5 pixels.
    Figure 2-9. Drawing a box
    Figure 2-9. Drawing a box
  3. Right-click the box and enter the new class name under [Change class].
    Type an English name not in the list (no digits or special characters) and + Add (typed name) appears. Click it or press Enter to create the class, apply it to the box and check it for training.
    Figure 2-10. Change class menu
    Figure 2-10. Change class menu
  4. With the classified box selected, click [Apply to Entire Video].
    The button is disabled until a box is selected. If the current frame has several boxes of that class, a window asks [Apply to selected only] or [Apply to all N].
    Figure 2-11. Choosing what to apply
    Figure 2-11. Choosing what to apply
  5. Wait for the results.
    The original box is replaced by the tracking result, shown about every 30 frames. "Object labeling completed." appears at the end. Stop with [Stop], A or Esc.
  6. Review by playing the video to see whether the tracked box drifts off the object.
    For a drifted range delete the boxes, redraw on that frame and apply again.
To Teach More Objects
Draw boxes on other objects of the same class (different looks or places) and apply each to the whole video to add variety to the training data. With several sessions, apply a representative object once per session.

Step 4. Train

When the review is done, request training and watch its progress.

  1. Click [Train] at the top right.
    The "Start training?" dialog opens with the estimated time. [Details] shows items such as the number of images used.
    Figure 2-12. Training confirmation
    Figure 2-12. Training confirmation
  2. Click [Confirm].
    The request is sent and you move to the [AI Update] screen automatically.
  3. Check your model's Status in the Update request history.
    The list refreshes every 10 seconds. In progress β†’ Success means training is done. Click the badge to see which step it reached.
    Figure 2-13. Update request history
    Figure 2-13. Update request history
  4. If it failed or stopped, try [Restart].
    If it keeps failing at the same step, tell the AI team the model name and the step.
While Training Runs
Training continues even if you close the screen. After training the device engine (TRT) is built next, so wait for TRT Done before moving on.

Step 5. Check the Result (Evaluation)

Evaluate the before and after models on the same test set and compare them.

  1. Open [Datasets] > [Model Evaluation].
    Check that a shared dataset with a test split exists. If not, first follow "Preparing a test set" in Section 09.
  2. Click [Run Evaluation] and evaluate the before model (the one in operation).
    Choose the test set, split and max images, and name it distinctly, e.g. before ....
    Figure 2-14. Run evaluation window
    Figure 2-14. Run evaluation window
  3. Evaluate the after model (the one you just trained) with the same settings.
    The test set, split and max images must match the before run for a fair comparison.
  4. When both evaluations are Completed, open the rows and compare.
    Check that mAP@50 and mAP@50-95 went up, that the AP of the class you wanted to improve went up, and that no other class dropped.
    Figure 2-15. Evaluation detail
    Figure 2-15. Evaluation detail
JudgmentCriteriaNext action
ImprovedOverall mAP up, target-class AP up, no big drops elsewhereProceed to step 6 (deploy)
No change / worsemAP flat or lowerReturn to step 3, check label quality and data amount, and train again
Keep the Test Set Separate
If test images are also used for training, scores look better than reality. Never mix the videos set aside for evaluation into the training data.

Step 6. Deploy the Model

Deliver only models confirmed as improved. Online and offline differ.

ModeHowVerify
OnlineConfirm in the [AI Update] list that the model shows Success and TRT Done, then request delivery to the site from the AI team through the official procedure.Check the new model version and detections on the site device
OfflineWhen training succeeds the TensorRT engine is built and deployed to the registered vunexai device automatically. There is no button to press (Section 10).Verify the new version, class list and detections on the device, then delete data (Section 11)

One-page Checklist

Confirm each step is finished.

StepCheckDetails
1Chose the goal and prepared account and videosSec. 02
2Entered name, starting model, videos/dataset and clicked [Draw boxes]Sec. 04
3Ran Object Suggestion, checked classes, reviewed boxes, and saved the dataSec. 05–06
4Confirmed [Train] and the status became Success and TRT DoneSec. 04
5Evaluated before/after on the same test set and comparedSec. 09
6Delivered to the site (device) and verified on the deviceSec. 04, 10