GabrielML commited on
Commit
ec26c06
·
1 Parent(s): 0fdea39

fix bug with video output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ def gradcam_video(video, alpha=0.5, cam_method=GradCAM, layer=None, specific_cla
146
  cam.remove_hooks()
147
 
148
  # save video
149
- fourcc = cv2.VideoWriter_fourcc(*'mp4v')
150
  size = (results[0].shape[1], results[0].shape[0])
151
  video = cv2.VideoWriter('src/results/gradcam_video.mp4', fourcc, OUTPUT_FPS, size)
152
  for frame in results:
 
146
  cam.remove_hooks()
147
 
148
  # save video
149
+ fourcc = cv2.VideoWriter_fourcc(*'H264')
150
  size = (results[0].shape[1], results[0].shape[0])
151
  video = cv2.VideoWriter('src/results/gradcam_video.mp4', fourcc, OUTPUT_FPS, size)
152
  for frame in results: