Skip to content

Commit b8f4ebe

Browse files
committed
fix(yolo-coral-tpu): synchronize host frame map to absolute container path in monitor wrapper
1 parent 52c0486 commit b8f4ebe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • skills/detection/yolo-detection-2026-coral-tpu/scripts

skills/detection/yolo-detection-2026-coral-tpu/scripts/monitor.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ function main() {
3232

3333
// Shared memory volume for video frames
3434
const path = require('node:path');
35-
const sharedMemoryHost = path.join(os.tmpdir(), 'aegis_detection');
35+
const sharedMemoryHost = path.join(os.tmpdir(), 'aegis-detection-frames');
3636
if (!fs.existsSync(sharedMemoryHost)) {
3737
fs.mkdirSync(sharedMemoryHost, { recursive: true });
3838
}
39-
args.push('-v', `${sharedMemoryHost}:/tmp/aegis_detection`);
39+
// Map the host path to the EXACT same absolute path inside the container
40+
// This allows the raw JSON `frame_path` from Aegis to work without translation.
41+
args.push('-v', `${sharedMemoryHost}:${sharedMemoryHost}`);
4042

4143
// Pass through Aegis parameters and ID dynamically
4244
for (const [key, val] of Object.entries(process.env)) {

0 commit comments

Comments
 (0)