facefusion.py: error: unrecognized arguments #4076
Unanswered
Supergatti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My code was like:
def process_task(task_id, selected_face_image, target_image_path, output_path):
try:
os.system(
f'python "{facefusion_script}" job-add-step {task_id} --source-paths "{selected_face_image}" --output-path "{output_path}" --target-path "{target_image_path}" --face-selector-mode reference --processors face_swapper face_enhancer --face-swapper-model inswapper_128_fp16 --face-enhancer-model gfpgan_1.4 --face-swapper-pixel-boost 512x512 '
)
return True
except Exception as e:
print(f"Error adding task step: {e}")
return False
but I get:
[FACEFUSION.CORE] Job 5946d77f created
usage: facefusion.py [-h] [-v]
{run,headless-run,batch-run,force-download,benchmark,job-list,job-create,job-submit,job-submit-all,job-delete,job-delete-all,job-add-step,job-remix-step,job-insert-step,job-remove-step,job-run,job-run-all,job-retry,job-retry-all}
...
facefusion.py: error: unrecognized arguments: --face-swapper-model inswapper_128_fp16 --face-enhancer-model gfpgan_1.4 --face-swapper-pixel-boost 512x512
[FACEFUSION.CORE] Job 5946d77f not submitted
Beta Was this translation helpful? Give feedback.
All reactions