Runtime Configuration#
Every option is available as a CLI flag and as an environment variable (with the CLI
flag taking precedence). Launch via run.ps1 in a typical situation, or call the application
module directly for full control:
venv\Scripts\python.exe -m src.app --source file --input clip.mp4 --device GPU --gpu-cap 80
run.ps1 parameters#
Parameter |
Values |
Default |
Description |
|---|---|---|---|
|
|
|
Input type |
|
path / index / folder |
— |
Video path, webcam index, or stills folder |
|
|
|
Model architecture to run |
|
|
|
OpenVINO™ inference device; NPU is not supported |
|
path |
application default |
Override the DS2Net Intermediate Representation (IR) |
|
path |
|
Virtual environment folder |
|
— |
— |
Flags after |
Example of forwarding extra flags:
.\run.ps1 -Source file -Input clip.mp4 -- --record out.mp4 --gpu-cap 70 --alpha 0.5
Application flags#
Source#
Flag |
Environment variable |
Default |
Description |
|---|---|---|---|
|
|
|
|
|
|
— |
Video path, webcam index, or stills folder |
|
|
loop on |
Stop at end instead of looping file/folder sources |
|
|
|
Requested capture width |
|
|
|
Requested capture height |
|
|
|
Pacing for folder/webcam sources |
Model / inference#
Flag |
Environment variable |
Default |
Description |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
DS2Net OpenVINO™ IR path |
|
|
|
DS2Net network input resolution (must match the exported IR) |
|
|
|
SAM encoder IR ( |
|
|
|
SAM multimask-decoder IR ( |
|
|
|
YOLO bounding box IR ( |
|
|
|
Run inference every Nth captured frame |
Note
--res must equal the resolution the IR was exported at. The default DS2Net IR
is exported at 256; if you export at another resolution, pass the matching
--res. The sam architecture is fixed at 256 and uses the three --sam-* IR paths
instead of --model.
Device: both models target the Intel integrated GPU (iGPU) through the GPU
device. CPU is a development or sanity fallback. The NPU is not supported; passing NPU logs a notice and
falls back to GPU or CPU.
GPU utilization cap#
Flag |
Environment variable |
Default |
Description |
|---|---|---|---|
|
|
|
Hard iGPU busiest-engine utilization ceiling (KPI) |
|
|
off |
Disable the governor (measure uncapped utilization) |
The governor targets a value of around 70% and hard-kicks over the cap, clamping a per-frame
delay in [0, 1.0] s. It reads Windows GPU-Engine counters via pywin32; on non-Windows
machines it becomes inactive so the application still runs for development.
Display / output#
Flag |
Environment variable |
Default |
Description |
|---|---|---|---|
|
|
|
Layout: |
|
|
|
Mask overlay opacity (0–1) |
|
|
|
Overlay color as |
|
|
|
Scale the output window |
|
|
|
Window title |
|
|
off |
No window (useful for recording / soak tests) |
|
|
— |
Write an annotated |
|
|
— |
Path to a log file for recording runtime messages (including KPI verdicts) |
Examples#
Measure uncapped iGPU utilization (governor off), headless, recording:
.\run.ps1 -Source folder -Input C:\frames -Device GPU -- --no-governor --headless --record soak.mp4
Tighten the GPU cap and use a green mask:
.\run.ps1 -Source file -Input clip.mp4 -Device GPU -- --gpu-cap 70 --mask-color 0,255,0
Use the single-pane overlay instead of the default side-by-side view:
.\run.ps1 -Source file -Input clip.mp4 -Device GPU -- --view overlay