Luigi commited on
Commit
a459bee
·
1 Parent(s): be5c239

add debug to show which weight files we’re using this run

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -112,6 +112,11 @@ def caption_frame(frame, size, model_file, clip_file, interval_ms, sys_prompt, u
112
  timestamp = time.strftime('%H:%M:%S')
113
  debug_msgs.append(f"[{timestamp}] Received frame shape: {frame.shape}")
114
 
 
 
 
 
 
115
  t_resize = time.time()
116
  img = cv2.resize(frame.copy(), (384, 384))
117
  elapsed = (time.time() - t_resize) * 1000
 
112
  timestamp = time.strftime('%H:%M:%S')
113
  debug_msgs.append(f"[{timestamp}] Received frame shape: {frame.shape}")
114
 
115
+ # show which weight files we’re using this run
116
+ timestamp = time.strftime('%H:%M:%S')
117
+ debug_msgs.append(f"[{timestamp}] Using model weights: {model_file}")
118
+ debug_msgs.append(f"[{timestamp}] Using CLIP weights: {clip_file}")
119
+
120
  t_resize = time.time()
121
  img = cv2.resize(frame.copy(), (384, 384))
122
  elapsed = (time.time() - t_resize) * 1000