10

Offline: On-site Procedure

The procedure for taking the training machine to a site, linking it with the vunexai device on the internal network, and building and deploying a site-specific model from that site's data only. Screen operation is the same as online, so this section focuses on what differs offline.

On-site Flow

The on-site work goes in this order.

  1. Arrive, connect, start
    Connect the training machine to the site network and start Studio.
  2. Register the device
    Register the vunexai device in [AI Update] > [Device Management].
  3. Bring in site data
    Upload only that site's videos to Studio.
  4. Label and train
    Same as steps 3โ€“4 of the Section 02 Quick Start.
  5. Automatic deployment
    After training, the engine is built and deployed on the device.
  6. Verify
    Check on the device that the new model is applied.
  7. Delete data
    Before leaving, delete all site data following Section 11.
No Data Leaves the Site
Use site videos, labels and results only on site and delete them when done. Videos can contain personal data, so do not take screenshots, phone photos or copy to external storage.

Connect and Start

Connect the training machine and start Studio on arrival. The machine must have been installed and checked by the AI team beforehand.

  1. Connect the training machine and the vunexai device to the same network.
    Use the IP agreed with the site owner.
  2. Check the training machine's IP and that it can reach the device.
    Check the IP with ip -4 addr and reachability with ping -c 3 <device IP>.
  3. Start Studio.
    cd vunex-studio-offline && bash start.sh <training machine IP>
  4. Check the status.
    Run bash status.sh <training machine IP> and confirm every item is [OK]. If some show [FAIL], check again after 1โ€“3 minutes.
  5. Open the browser and log in.
    http://<training machine IP>:8080 Ask the AI team for the account.
Check for Leftover Data
After login check that [AI Update], [Collected Videos], [Datasets] and [Device Management] are empty. If you see another site's data, stop and run the Section 11 deletion first so that "only that site's data" holds.
If the IP Differs from Setup
Training image delivery was configured for the IP used at setup. With a different IP the first training may be unable to fetch images and stall. If progress stalls right after the first training, ask the AI team to reconfigure for the new IP.

Required Connectivity

These paths must be open on the firewall/switch.

DirectionPurposePort
Operator PC โ†’ training machineStudio screen and video playback8080, 19000
Training machine โ†’ deviceSSH (probe, engine build, deploy)22 (default)
Training machine โ†’ deviceDevice API and storage8092, 9000
Device โ†’ training machineDownload the trained model19000
Device-to-Machine Path Required
If the device cannot reach port 19000 on the training machine, the engine build fails. Check the site firewall/switch first.

Register the vunexai Device

Register this site's device in [Device Management] on the [AI Update] screen. After training, the model is deployed to every active registered device.

  1. Click [Device Management] at the top right of [AI Update].
    The VUNex AI Device Management window opens. If none is registered, a message is shown.
    Figure 10-1. Device management window
    Figure 10-1. Device management window
  2. Click [Add device] and enter the basic information.
    Device name, IP address, SSH port, SSH user, SSH password. Ask the site owner or AI team for the account values.
    Figure 10-2. Device registration form
    Figure 10-2. Device registration form
  3. Click [SSH connection check and HW autofill].
    On success the CPU architecture and GPU/CUDA/TensorRT information is filled in. It only reads.
    Figure 10-3. Hardware autofill
    Figure 10-3. Hardware autofill
  4. Check the filled values against the device and click [Register].
    Fill in any empty fields. The only build method is native.
Deploys to Every Active Device
When training succeeds the engine is built on every active registered device and each device's vunex-default model is replaced by the new version. Make sure only this site's device is registered, and delete any device you do not want to deploy to. With no device, deployment fails after training.

Bring in Site Data

This work assumes only that site's data is used.

MethodDescription
Upload videosUpload site videos in [AI Update] > [New Training Request], or in [Collected Videos] > [Uploaded Videos] (Sections 04, 07).
Field clipsIf the device is set to send false-positive/miss clips they appear in [Collected Videos] > [Field Collection].
How to keep "site data only"Where to check
Check lists are empty on arrival[AI Update], [Collected Videos], [Datasets]
Do not use shared datasetsDo not select [Train with shared datasets] in [New Training Request]
Only this site's device registered[Device Management]

Request Training and Track It

Screen use is the same as online (Section 02 Quick Start, Sections 04โ€“06). Only what is specific to offline is listed here.

TopicOffline behavior
Starting modelCreate new model starts from the base model (vunex-default), which the company provides and does not conflict with "site data only".
Auto-labelingUses the on-machine RF-DETR (default) and SAM3. Some external AI server features are unavailable offline.
GPUDuring training the auto-labeling servers are stopped so the GPU is devoted to training, and are restarted afterwards. Object Suggestion and AI Search are unavailable during training.
Training approachWithout shared datasets, training focuses on the site videos (Section 04).

Engine Build and Automatic Deployment

When training succeeds the system does the following automatically. There is no button to press.

  1. Builds a TensorRT engine on every active registered device.
    Up to 30 minutes per device, one after another. A failure on one device does not stop the next.
  2. Uploads the engine as a new version of the device's vunex-default model and updates its class list.
    Up to 10 minutes per device.
  3. The device loads the new model.
    From this point the device detects with the new model.
TRT badgeMeaning
TRT waitingTraining is done; waiting to build the engine
TRT buildingBuilding the engine on the device
TRT doneThe engine build finished (does not mean deployment finished)
TRT failedEngine build failed. Check device link and connectivity (see troubleshooting below)
Training "Success" Is Not Deployment
The training status turns Success before the engine build starts. Deployment failures may not appear on screen, so always verify on the device as described next.
The Device's vunex-default Is Replaced
Deployment is equivalent to switching the device's vunex-default to a new version. Before deploying, note the current model version and class list on the device. No rollback procedure is documented; ask the AI team if needed.

Verify the Deployment

Treat deployment as complete only after all of these are checked.

CheckHowNormal result
1. Training status[AI Update] listSuccess and TRT Done
2. Device model versionModel screen of the vunexai deviceA new version of vunex-default is applied
3. Class listModel/class screen of the deviceThe classes you trained appear
4. On-site detectionCheck detections on site footage or live videoThe targeted false positives/misses are reduced
Do Not Stop at "TRT Done"
Even if deployment fails, the screen may show TRT Done. Skipping checks 2โ€“3 can leave the site without the new model. If the device does not show it, ask the AI team to check the logs.

When Something Fails

What to check by symptom. If it keeps failing, summarize the symptom and time for the AI team (do not take logs containing site information off site).

SymptomLikely causeAction
Deployment fails after training / no registered deviceNo active device registeredRegister the device in [Device Management] and train again
TRT build failsDevice cannot reach port 19000, or device link errorCheck connectivity and re-run the connection check
Authentication failureSSH password empty or wrongRe-enter the password in device edit
Device has no vunex-defaultThe base model is missing on the deviceAsk the AI team
Connection check failsWrong IP/port/account, device power/networkCheck IP, SSH port, account and ping
Training stalls from the startImage delivery configured for a different IPAsk the AI team to reconfigure for the new IP