PengWeixuanSZU commited on
Commit
48b7ead
·
verified ·
1 Parent(s): 470d604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -278,7 +278,7 @@ def track_video(n_frames, video_state):
278
  painted = (1 - mask * 0.5) * frame + mask * 0.5 * color
279
  painted = np.uint8(np.clip(painted * 255, 0, 255))
280
  output_frames.append(painted)
281
- print(f"line 281 len(output_frames)={output_frames}, painted shape:{painted.shape}")
282
  video_state["masks"] = mask_frames
283
  video_file = f"/tmp/{time.time()}-{random.random()}-tracked_output.mp4"
284
  clip = ImageSequenceClip(output_frames, fps=15)
 
278
  painted = (1 - mask * 0.5) * frame + mask * 0.5 * color
279
  painted = np.uint8(np.clip(painted * 255, 0, 255))
280
  output_frames.append(painted)
281
+ print(f"line 281 len(output_frames)={len(output_frames)}, painted shape:{painted.shape}")
282
  video_state["masks"] = mask_frames
283
  video_file = f"/tmp/{time.time()}-{random.random()}-tracked_output.mp4"
284
  clip = ImageSequenceClip(output_frames, fps=15)