Spaces:
Sleeping
Sleeping
Update roop/core.py
Browse files- roop/core.py +14 -15
roop/core.py
CHANGED
@@ -35,20 +35,20 @@ def parse_args() -> None:
|
|
35 |
program.add_argument('-o', '--output', help='select output file or directory', dest='output_path')
|
36 |
program.add_argument('--frame-processor', help='frame processors (choices: face_swapper, face_enhancer, ...)', dest='frame_processor', default=['face_swapper'], nargs='+')
|
37 |
program.add_argument('--keep-fps', help='keep target fps', dest='keep_fps', action='store_true')
|
38 |
-
program.add_argument('--keep-frames', help='keep temporary frames', dest='keep_frames', action='store_true')
|
39 |
-
program.
|
40 |
-
program.
|
41 |
-
program.
|
42 |
-
program.
|
43 |
-
program.
|
44 |
-
program.add.
|
45 |
-
program.
|
46 |
-
program.add.
|
47 |
-
program.add.
|
48 |
-
program.add.
|
49 |
-
program.add.
|
50 |
-
program.add.
|
51 |
-
program.add.
|
52 |
|
53 |
args = program.parse_args()
|
54 |
|
@@ -219,4 +219,3 @@ def run() -> None:
|
|
219 |
else:
|
220 |
window = ui.init(start, destroy)
|
221 |
window.mainloop()
|
222 |
-
|
|
|
35 |
program.add_argument('-o', '--output', help='select output file or directory', dest='output_path')
|
36 |
program.add_argument('--frame-processor', help='frame processors (choices: face_swapper, face_enhancer, ...)', dest='frame_processor', default=['face_swapper'], nargs='+')
|
37 |
program.add_argument('--keep-fps', help='keep target fps', dest='keep_fps', action='store_true')
|
38 |
+
program.add.add_argument('--keep-frames', help='keep temporary frames', dest='keep_frames', action='store_true')
|
39 |
+
program.add.add.argument('--skip-audio', help='skip target audio', dest='skip_audio', action='store_true')
|
40 |
+
program.add.argument('--many-faces', help='process every face', dest='many_faces', action='store_true')
|
41 |
+
program.add.argument('--reference-face-position', help='position of the reference face', dest='reference_face_position', type=int, default=0)
|
42 |
+
program.add.argument('--reference-frame-number', help='number of the reference frame', dest='reference_frame_number', type=int, default=0)
|
43 |
+
program.add.argument('--similar-face-distance', help='face distance used for recognition', dest='similar_face_distance', type=float, default=0.85)
|
44 |
+
program.add.argument('--temp-frame-format', help='image format used for frame extraction', dest='temp_frame_format', default='png', choices=['jpg', 'png'])
|
45 |
+
program.add.argument('--temp-frame-quality', help='image quality used for frame extraction', dest='temp_frame_quality', type=int, default=0, choices=range(101), metavar='[0-100]')
|
46 |
+
program.add.argument('--output-video-encoder', help='encoder used for the output video', dest='output_video_encoder', default='libx264', choices=['libx264', 'libx265', 'libvpx-vp9', 'h264_nvenc', 'hevc_nvenc'])
|
47 |
+
program.add.argument('--output-video-quality', help='quality used for the output video', dest='output_video_quality', type=int, default=35, choices=range(101), metavar='[0-100]')
|
48 |
+
program.add.argument('--max-memory', help='maximum amount of RAM in GB', dest='max_memory', type=int)
|
49 |
+
program.add.argument('--execution-provider', help='available execution provider (choices: cpu, cuda, ...)', dest='execution_provider', default=['cuda'], choices=suggest_execution_providers(), nargs='+')
|
50 |
+
program.add.argument('--execution-threads', help='number of execution threads', dest='execution_threads', type=int, default=suggest_execution_threads())
|
51 |
+
program.add.argument('-v', '--version', action='version', version=f'{roop.metadata.name} {roop.metadata.version}')
|
52 |
|
53 |
args = program.parse_args()
|
54 |
|
|
|
219 |
else:
|
220 |
window = ui.init(start, destroy)
|
221 |
window.mainloop()
|
|