From 6258f3c084b9eb8936c7bcb3182cb6eb332b937f Mon Sep 17 00:00:00 2001 From: Henry Ruhs Date: Wed, 31 May 2023 02:44:58 +0200 Subject: [PATCH] Update processor.py --- core/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/processor.py b/core/processor.py index 0754e04..398431d 100644 --- a/core/processor.py +++ b/core/processor.py @@ -37,6 +37,6 @@ def process_img(source_img, target_path, output_file): frame = cv2.imread(target_path) face = get_face(frame) source_face = get_face(cv2.imread(source_img)) - result = face_swapper.get(frame, face, source_face, paste_back=True) + result = get_face_swapper().get(frame, face, source_face, paste_back=True) cv2.imwrite(output_file, result) print("\n\nImage saved as:", output_file, "\n\n") \ No newline at end of file