Spaces:
Runtime error
Runtime error
resize frame to 64x64
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def caption_frame(frame, size, model_file, clip_file, interval_ms, sys_prompt, u
|
|
| 127 |
img = cv2.resize(frame.copy(), (64, 64))
|
| 128 |
elapsed = (time.time() - t_resize) * 1000
|
| 129 |
timestamp = time.strftime('%H:%M:%S')
|
| 130 |
-
debug_msgs.append(f"[{timestamp}] Resized to
|
| 131 |
|
| 132 |
timestamp = time.strftime('%H:%M:%S')
|
| 133 |
debug_msgs.append(f"[{timestamp}] Sleeping for {interval_ms} ms")
|
|
|
|
| 127 |
img = cv2.resize(frame.copy(), (64, 64))
|
| 128 |
elapsed = (time.time() - t_resize) * 1000
|
| 129 |
timestamp = time.strftime('%H:%M:%S')
|
| 130 |
+
debug_msgs.append(f"[{timestamp}] Resized to 64x64 in {elapsed:.1f} ms")
|
| 131 |
|
| 132 |
timestamp = time.strftime('%H:%M:%S')
|
| 133 |
debug_msgs.append(f"[{timestamp}] Sleeping for {interval_ms} ms")
|