8 lines
455 B
PowerShell
8 lines
455 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path $PSScriptRoot -Parent
|
|
$env:PATH = (Join-Path $root 'lib') + ';' + $env:PATH
|
|
$config = Join-Path $root 'models\primary\model.yaml'
|
|
if ([string]::IsNullOrWhiteSpace($config)) { throw 'Packaged model YAML was not found.' }
|
|
& (Join-Path $root 'examples\bin\yolo_c_example.exe') --config $config --image (Join-Path $root 'examples\assets\sample.bmp') --json (Join-Path $root 'result.json')
|
|
exit $LASTEXITCODE
|