adding headless argument to run configuration

pull/614/head
Michael 2024-09-21 22:35:16 +01:00
parent 92a0994f01
commit d8e8c8eb78
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ def parse_args() -> None:
program.add_argument('--max-memory', help='maximum amount of RAM in GB', dest='max_memory', type=int, default=suggest_max_memory())
program.add_argument('--execution-provider', help='execution provider', dest='execution_provider', default=['cpu'], choices=suggest_execution_providers(), nargs='+')
program.add_argument('--execution-threads', help='number of execution threads', dest='execution_threads', type=int, default=suggest_execution_threads())
program.add_argument('--headless', help='Run in headless mode', dest='headless', default=False, action='store_true')
program.add_argument('-v', '--version', action='version', version=f'{modules.metadata.name} {modules.metadata.version}')
# register deprecated args
@ -76,6 +77,7 @@ def parse_args() -> None:
modules.globals.max_memory = args.max_memory
modules.globals.execution_providers = decode_execution_providers(args.execution_provider)
modules.globals.execution_threads = args.execution_threads
modules.globals.headless = args.headless
#for ENHANCER tumbler:
if 'face_enhancer' in args.frame_processor: