mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-27 12:30:55 +02:00
6e91bddfb07015fed49b469a571992806832c3db
process_temp_frame read the target frame twice per output frame: once from the video (the detection window) and once from the extracted temp PNG (the swap canvas). They are the same frame N. The window centre is already decoded in the reader, so use it as the canvas and only fall back to the temp PNG when the reader resolution differs from the temp resolution (scaled output). Removes one full-frame decode per output frame. AV1 ~22 -> ~26 fps and H.264 ~20 -> ~23 fps -- matching and slightly beating 3.6.1, because a frame copy is cheaper than a PNG decode. The canvas now comes from the raw pipe decode instead of the PNG decode of the same frame (sub-visual ~1 LSB difference in passthrough regions); detection is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
FaceFusion
Industry leading face manipulation platform.
Preview
Installation
Be aware, the installation needs technical skills and is not recommended for beginners. In case you are not comfortable using a terminal, our Windows Installer and macOS Installer get you started.
Usage
Run the command:
python facefusion.py [commands] [options]
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
commands:
run run the program
headless-run run the program in headless mode
batch-run run the program in batch mode
force-download force automate downloads and exit
benchmark benchmark the program
job-list list jobs by status
job-create create a drafted job
job-submit submit a drafted job to become a queued job
job-submit-all submit all drafted jobs to become a queued jobs
job-delete delete a drafted, queued, failed or completed job
job-delete-all delete all drafted, queued, failed and completed jobs
job-add-step add a step to a drafted job
job-remix-step remix a previous step from a drafted job
job-insert-step insert a step to a drafted job
job-remove-step remove a step from a drafted job
job-run run a queued job
job-run-all run all queued jobs
job-retry retry a failed job
job-retry-all retry all failed jobs
Documentation
Read the documentation for a deep dive.
Languages
Python
99.7%
CSS
0.3%
