added changes as suggested by sourcery

pull/1458/head
nopgadget 2025-08-15 14:59:37 -06:00
parent 03576d503a
commit 4860ba84fc
1 changed files with 0 additions and 2 deletions

View File

@ -63,8 +63,6 @@ def get_face_swapper() -> Any:
with THREAD_LOCK:
if FACE_SWAPPER is None:
model_name = "inswapper_128.onnx"
if "CUDAExecutionProvider" in modules.globals.execution_providers:
model_name = "inswapper_128.onnx"
model_path = os.path.join(models_dir, model_name)
FACE_SWAPPER = insightface.model_zoo.get_model(
model_path, providers=modules.globals.execution_providers