diff --git a/deploy/python/mot_jde_infer.py b/deploy/python/mot_jde_infer.py index 8e37d1b7a421183f1bb02a931afc95f3c44499c1..de73ca07753f89f343fee8ea8cde69aa93477330 100644 --- a/deploy/python/mot_jde_infer.py +++ b/deploy/python/mot_jde_infer.py @@ -267,7 +267,7 @@ def predict_video(detector, camera_id): if FLAGS.save_images: save_dir = os.path.join(FLAGS.output_dir, video_name.split('.')[-2]) - cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" {}'.format( + cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg {}'.format( save_dir, out_path) os.system(cmd_str) print('Save video in {}.'.format(out_path)) diff --git a/deploy/python/mot_keypoint_unite_infer.py b/deploy/python/mot_keypoint_unite_infer.py index 706b61127d651430684752cfb30733e39f0d80dc..6969cb31e7d1b4ee98bfab7e35ba039877213ee0 100644 --- a/deploy/python/mot_keypoint_unite_infer.py +++ b/deploy/python/mot_keypoint_unite_infer.py @@ -216,7 +216,7 @@ def mot_keypoint_unite_predict_video(mot_model, if FLAGS.save_images: save_dir = os.path.join(FLAGS.output_dir, video_name.split('.')[-2]) - cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" {}'.format( + cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg {}'.format( save_dir, out_path) os.system(cmd_str) print('Save video in {}.'.format(out_path)) diff --git a/deploy/python/mot_sde_infer.py b/deploy/python/mot_sde_infer.py index 6e1a4036f9851cf5077b691db65695f618d30363..45419dc534d72fd16e37cf5a206e938952663076 100644 --- a/deploy/python/mot_sde_infer.py +++ b/deploy/python/mot_sde_infer.py @@ -408,7 +408,7 @@ def predict_video(detector, reid_model, camera_id): if FLAGS.save_images: save_dir = os.path.join(FLAGS.output_dir, video_name.split('.')[-2]) - cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" {}'.format( + cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg {}'.format( save_dir, out_path) os.system(cmd_str) print('Save video in {}.'.format(out_path)) diff --git a/ppdet/engine/tracker.py b/ppdet/engine/tracker.py index 5789877bc5b2459afea0d2cee6ec4f522f352762..0d4f98b68c5f9e29e26a72fd319f27e7e2ffc846 100644 --- a/ppdet/engine/tracker.py +++ b/ppdet/engine/tracker.py @@ -331,7 +331,7 @@ class Tracker(object): if save_videos: output_video_path = os.path.join(save_dir, '..', '{}_vis.mp4'.format(seq)) - cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" {}'.format( + cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg {}'.format( save_dir, output_video_path) os.system(cmd_str) logger.info('Save video in {}.'.format(output_video_path)) @@ -449,7 +449,7 @@ class Tracker(object): if save_videos: output_video_path = os.path.join(save_dir, '..', '{}_vis.mp4'.format(seq)) - cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" {}'.format( + cmd_str = 'ffmpeg -f image2 -i {}/%05d.jpg {}'.format( save_dir, output_video_path) os.system(cmd_str) logger.info('Save video in {}'.format(output_video_path))