fix(perception): bound vegetation load decoding
This commit is contained in:
@@ -288,24 +288,6 @@ foreach ($name in $containers) {
|
||||
|
||||
$started = [DateTimeOffset]::UtcNow
|
||||
try {
|
||||
if ($VegetationLoadGate) {
|
||||
$vegetationFrames = Join-Path $runOutput "vegetation\input-frames"
|
||||
$null = New-Item -ItemType Directory -Path $vegetationFrames
|
||||
& ffmpeg -hide_banner -loglevel error -i $source.Video -map 0:v:0 -fps_mode passthrough (
|
||||
Join-Path $vegetationFrames "frame-%06d.png"
|
||||
)
|
||||
Assert-LastExitCode "RAVNOVES full-video frame extraction"
|
||||
$extractedFrames = @(
|
||||
Get-ChildItem -LiteralPath $vegetationFrames -File -Filter "frame-*.png" |
|
||||
Sort-Object Name
|
||||
)
|
||||
if (
|
||||
$extractedFrames.Count -ne 4489 -or
|
||||
$extractedFrames[0].Name -cne "frame-000001.png" -or
|
||||
$extractedFrames[-1].Name -cne "frame-004489.png"
|
||||
) { throw "RAVNOVES full-video frame sequence changed" }
|
||||
}
|
||||
|
||||
& docker run --rm --name $prepareName --network none --cpus 8 --memory 16g `
|
||||
--entrypoint python3 `
|
||||
--volume ((Convert-ToDockerPath $source.SourcePack) + ":/source/lidar-pack.npz:ro") `
|
||||
@@ -414,6 +396,7 @@ try {
|
||||
--volume ($dockerRun + ":/shared:rw") `
|
||||
--volume ($dockerVegetationDataset + ":/data/goose:ro") `
|
||||
--volume ($dockerVegetationCheckpoint + ":/models/candidate.pth:ro") `
|
||||
--volume ((Convert-ToDockerPath $source.Video) + ":/source/right.mp4:ro") `
|
||||
$VegetationImageTag run --no-capture-output --name goose python `
|
||||
/release/run_vegetation_integrated_load.py `
|
||||
--config /release/lab-v1-goose-vegetation-benchmark-v1.json `
|
||||
@@ -421,7 +404,7 @@ try {
|
||||
--provider-map /release/lab-v1-vegetation-provider-label-map-v1.json `
|
||||
--checkpoint /models/candidate.pth `
|
||||
--dataset-root /data/goose `
|
||||
--frames-root /shared/vegetation/input-frames `
|
||||
--video /source/right.mp4 `
|
||||
--source-rate-hz $rate `
|
||||
--minimum-effective-fps 11.209069 `
|
||||
--maximum-completion-p95-ms 125.0 `
|
||||
@@ -582,10 +565,6 @@ try {
|
||||
Assert-LastExitCode "M49 integrated vegetation evidence gate"
|
||||
}
|
||||
} finally {
|
||||
$vegetationFrames = Join-Path $runOutput "vegetation\input-frames"
|
||||
if (Test-Path -LiteralPath $vegetationFrames -PathType Container) {
|
||||
Remove-Item -LiteralPath $vegetationFrames -Recurse -Force
|
||||
}
|
||||
foreach ($name in $containers) { Remove-ExactContainer $name }
|
||||
$canonicalAfter = Get-Container "ndc-mission-core-triton"
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user