From 9d9e967f92832bdee89f73063c6324764bc641f4 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Mon, 29 May 2023 16:08:53 +0300 Subject: [PATCH 1/3] Add --output option to set output file --- run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run.py b/run.py index 3acdf00..a5d0530 100644 --- a/run.py +++ b/run.py @@ -20,6 +20,7 @@ args = {} parser = argparse.ArgumentParser() parser.add_argument('-f', '--face', help='use this face', dest='source_img') parser.add_argument('-t', '--target', help='replace this face', dest='target_path') +parser.add_argument('-o', '--output', help='replace this face', dest='output_file') parser.add_argument('--keep-fps', help='maintain original fps', dest='keep_fps', action='store_true', default=False) parser.add_argument('--gpu', help='use gpu', dest='gpu', action='store_true', default=False) parser.add_argument('--keep-frames', help='keep frames directory', dest='keep_frames', action='store_true', default=False) From 6003300710ab6470cc68150b66c2aaf3d32b358d Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Mon, 29 May 2023 16:12:06 +0300 Subject: [PATCH 2/3] Fix --output option help text --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index a5d0530..86ba0fe 100644 --- a/run.py +++ b/run.py @@ -20,7 +20,7 @@ args = {} parser = argparse.ArgumentParser() parser.add_argument('-f', '--face', help='use this face', dest='source_img') parser.add_argument('-t', '--target', help='replace this face', dest='target_path') -parser.add_argument('-o', '--output', help='replace this face', dest='output_file') +parser.add_argument('-o', '--output', help='save output to this file', dest='output_file') parser.add_argument('--keep-fps', help='maintain original fps', dest='keep_fps', action='store_true', default=False) parser.add_argument('--gpu', help='use gpu', dest='gpu', action='store_true', default=False) parser.add_argument('--keep-frames', help='keep frames directory', dest='keep_frames', action='store_true', default=False) From 87549307b764ed8217adc10051ebd9787599dbca Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Mon, 29 May 2023 16:13:22 +0300 Subject: [PATCH 3/3] Add --output option to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 984b626..1ece776 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ Additional command line arguments are given below: use this face -t TARGET_PATH, --target TARGET_PATH replace this face +-o OUTPUT_FILE, --output OUTPUT_FILE + save output to this file --keep-fps keep original fps --gpu use gpu --keep-frames don't delete frames directory