Spaces:
Sleeping
Sleeping
fix bug with video output
Browse files
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(*'
|
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:
|