oskarastrom commited on
Commit
5a4c0fb
·
1 Parent(s): 24e859a

Update visualizer.py

Browse files
Files changed (1) hide show
  1. visualizer.py +2 -1
visualizer.py CHANGED
@@ -43,7 +43,8 @@ def generate_video_batches(didson, preds, frame_rate, video_out_path, gp=None, i
43
  vid_frames, h, w = get_video_frames(frames, preds, frame_rate, image_meter_width, image_meter_height, start_frame=i)
44
 
45
  print("starting", i)
46
- print("len", len(vid_frames))
 
47
  if out is None:
48
  codec = cv2.VideoWriter_fourcc(*'avc1') if is_fourcc_available("avc1") else cv2.VideoWriter_fourcc(*'mp4v')
49
  out = cv2.VideoWriter(video_out_path, codec, frame_rate, [ int(1.5*w), h ] )
 
43
  vid_frames, h, w = get_video_frames(frames, preds, frame_rate, image_meter_width, image_meter_height, start_frame=i)
44
 
45
  print("starting", i)
46
+ print("len frames", len(frames))
47
+ print("len vid_frames", len(vid_frames))
48
  if out is None:
49
  codec = cv2.VideoWriter_fourcc(*'avc1') if is_fourcc_available("avc1") else cv2.VideoWriter_fourcc(*'mp4v')
50
  out = cv2.VideoWriter(video_out_path, codec, frame_rate, [ int(1.5*w), h ] )