Spaces:
Running on Zero
Running on Zero
apolinario commited on
Commit ·
19fe543
1
Parent(s): 26c77c2
jam(dev): log frame_ms + cudagraph/eager mode in buffer line
Browse files
app.py
CHANGED
|
@@ -332,7 +332,8 @@ def gpu_stream(session_id):
|
|
| 332 |
buf_log.append(ahead)
|
| 333 |
if time.time() - buf_t >= 15.0 and buf_log:
|
| 334 |
print(f"[buffer] avg={sum(buf_log)/len(buf_log):.2f}s min={min(buf_log):.2f} "
|
| 335 |
-
f"max={max(buf_log):.2f} target={buf:.2f}s n={len(buf_log)}
|
|
|
|
| 336 |
buf_log, buf_t = [], time.time()
|
| 337 |
sleep_for = max(0.0, ahead - buf)
|
| 338 |
cl = read_client_lead(session_id) # client's real Web-Audio queue (ms)
|
|
|
|
| 332 |
buf_log.append(ahead)
|
| 333 |
if time.time() - buf_t >= 15.0 and buf_log:
|
| 334 |
print(f"[buffer] avg={sum(buf_log)/len(buf_log):.2f}s min={min(buf_log):.2f} "
|
| 335 |
+
f"max={max(buf_log):.2f} target={buf:.2f}s n={len(buf_log)} "
|
| 336 |
+
f"frame={frame_ms:.1f}ms mode={'cudagraph' if (USE_CG and cg_ok) else 'eager'}", flush=True)
|
| 337 |
buf_log, buf_t = [], time.time()
|
| 338 |
sleep_for = max(0.0, ahead - buf)
|
| 339 |
cl = read_client_lead(session_id) # client's real Web-Audio queue (ms)
|