()
| 238 | |
| 239 | |
| 240 | def create_benchmark_program() -> ArgumentParser: |
| 241 | program = ArgumentParser(add_help = False) |
| 242 | group_benchmark = program.add_argument_group('benchmark') |
| 243 | group_benchmark.add_argument('--benchmark-mode', help = translator.get('help.benchmark_mode'), default = config.get_str_value('benchmark', 'benchmark_mode', 'warm'), choices = facefusion.choices.benchmark_modes) |
| 244 | group_benchmark.add_argument('--benchmark-resolutions', help = translator.get('help.benchmark_resolutions'), default = config.get_str_list('benchmark', 'benchmark_resolutions', get_first(facefusion.choices.benchmark_resolutions)), choices = facefusion.choices.benchmark_resolutions, nargs = '+') |
| 245 | group_benchmark.add_argument('--benchmark-cycle-count', help = translator.get('help.benchmark_cycle_count'), type = int, default = config.get_int_value('benchmark', 'benchmark_cycle_count', '5'), choices = facefusion.choices.benchmark_cycle_count_range) |
| 246 | return program |
| 247 | |
| 248 | |
| 249 | def create_execution_program() -> ArgumentParser: |
no test coverage detected