Skip to content

Commit

Permalink
🐛 Fix bug that inferenced video cannot play (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanpuhaha committed Feb 2, 2023
1 parent 7f0e621 commit 30f6851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _inference_video(model_info: ModelInfo, video_filepath: FilePath) -> FilePat
visualizer = VISUALIZERS.build(model.cfg.visualizer)
visualizer.dataset_meta = model.dataset_meta
video_reader = mmcv.VideoReader(str(video_filepath))
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
fourcc = cv2.VideoWriter_fourcc(*"H264")
out_filepath = video_filepath.parent / (f"inferenced_{video_filepath.name}")
video_writer = cv2.VideoWriter(
str(out_filepath),
Expand Down

0 comments on commit 30f6851

Please sign in to comment.