MCPcopy Index your code
hub / github.com/facefusion/facefusion / create_benchmark_program

Function create_benchmark_program

facefusion/program.py:240–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238
239
240def 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
249def create_execution_program() -> ArgumentParser:

Callers 1

create_programFunction · 0.85

Calls 1

get_firstFunction · 0.90

Tested by

no test coverage detected