mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-31 06:17:27 +02:00
Next (#502)
* Validate the overrides from facefusion.ini * Break down cli testing * Remove architecture lookup to support old driver * Remove architecture lookup to support old driver * Remove hwaccel auto * Respect the output video resolution * Bump next version * Full directml support (#501) * Introduce conditional thread management for DML support * Finish migration to thread helpers * Introduce dynamic frame colorizer sizes * Introduce dynamic frame colorizer sizes * Add 192x192 to frame colorizer * Fix async audio
This commit is contained in:
@@ -108,6 +108,19 @@ def cli() -> None:
|
||||
run(program)
|
||||
|
||||
|
||||
def validate_args(program : ArgumentParser) -> None:
|
||||
try:
|
||||
for action in program._actions:
|
||||
if action.default:
|
||||
if isinstance(action.default, list):
|
||||
for default in action.default:
|
||||
program._check_value(action, default)
|
||||
else:
|
||||
program._check_value(action, action.default)
|
||||
except Exception as exception:
|
||||
program.error(str(exception))
|
||||
|
||||
|
||||
def apply_args(program : ArgumentParser) -> None:
|
||||
args = program.parse_args()
|
||||
# general
|
||||
@@ -185,6 +198,7 @@ def apply_args(program : ArgumentParser) -> None:
|
||||
|
||||
|
||||
def run(program : ArgumentParser) -> None:
|
||||
validate_args(program)
|
||||
apply_args(program)
|
||||
logger.init(facefusion.globals.log_level)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user