Zhen Ye Claude Opus 4.6 commited on
Commit
f09ca9c
·
1 Parent(s): b1974e2

fix: replace gated GSAM2 streaming with adaptive-rate publisher thread

Browse files

The old streaming approach (60-frame startup buffer + 20-frame safety
threshold + 3x frame duplication) prevented any frames from reaching
the frontend during processing. Replace with a dedicated publisher
thread that measures production rate during a 5s startup window, then
streams at 85% of measured rate with adaptive adjustments and heartbeat
keepalives. Reduce endpoint startup buffer from 30 to 5 frames.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

3 files changed +126 -64
Files changed (3)
app.py+1-1
inference.py+124-54
jobs/streaming.py+1-9