Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
138b189
1
Parent(s):
6f44b29
main.py
CHANGED
@@ -263,6 +263,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
263 |
if frame_num > NUM_MAX_FRAMES-1:
|
264 |
print (f"DEBUG MODE_2, REMOVING HIDDEN STATES")
|
265 |
previous_frame = padding_image
|
|
|
266 |
inputs = prepare_model_inputs(previous_frame, hidden_states, x, y, is_right_click, is_left_click, list(keys_down), stoi, itos, frame_num)
|
267 |
print(f"[{time.perf_counter():.3f}] Starting model inference...")
|
268 |
previous_frame, sample_img, hidden_states, timing_info = await process_frame(model, inputs)
|
|
|
263 |
if frame_num > NUM_MAX_FRAMES-1:
|
264 |
print (f"DEBUG MODE_2, REMOVING HIDDEN STATES")
|
265 |
previous_frame = padding_image
|
266 |
+
frame_num = 0
|
267 |
inputs = prepare_model_inputs(previous_frame, hidden_states, x, y, is_right_click, is_left_click, list(keys_down), stoi, itos, frame_num)
|
268 |
print(f"[{time.perf_counter():.3f}] Starting model inference...")
|
269 |
previous_frame, sample_img, hidden_states, timing_info = await process_frame(model, inputs)
|