新页面
源代码下载
https://github.com/facefusion/facefusion
准备环境
# 创建环境
conda create -n facefusion python=3.13
# 切换环境
conda activate facefusion
# 安装环境
python install.py --onnxruntime openvinodefault
# 安装依赖
pip install -r requirements.txt
# 安装openvino驱动(intel GPU)
pip install openvino==2025.4.1
# 运行
python facefusion.py run
常用配置
[paths]
output_path = C:\Users\Videos\
[face_detector]
face_detector_model = yoloface
face_detector_size = 640x640
[output_creation]
output_audio_encoder = aac
output_video_encoder = libx264
output_video_preset = veryfast
命令行参数说明
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