FaceFusion
==========
> Next generation face swapper and enhancer.
[![Build Status](https://img.shields.io/github/actions/workflow/status/facefusion/facefusion/ci.yml.svg?branch=master)](https://github.com/facefusion/facefusion/actions?query=workflow:ci)
![License](https://img.shields.io/badge/license-MIT-green)
Preview
-------
![Preview](https://raw.githubusercontent.com/facefusion/facefusion/master/.github/preview.png?sanitize=true)
Installation
------------
Be aware, the installation needs technical skills and is not for beginners. Please do not open platform and installation related issues on GitHub. We have a very helpful [Discord](https://join.facefusion.io) community that will guide you to complete the installation.
Get started with the [installation](https://docs.facefusion.io/installation) guide.
Usage
-----
Run the command:
```
python run.py [options]
options:
-h, --help show this help message and exit
-s SOURCE_PATHS, --source SOURCE_PATHS choose single or multiple source images or audios
-t TARGET_PATH, --target TARGET_PATH choose single target image or video
-o OUTPUT_PATH, --output OUTPUT_PATH specify the output file or directory
-v, --version show program's version number and exit
misc:
--skip-download omit automate downloads and remote lookups
--headless run the program without a user interface
--log-level {error,warn,info,debug} adjust the message severity displayed in the terminal
execution:
--execution-providers EXECUTION_PROVIDERS [EXECUTION_PROVIDERS ...] accelerate the model inference using different providers (choices: cpu, ...)
--execution-thread-count [1-128] specify the amount of parallel threads while processing
--execution-queue-count [1-32] specify the amount of frames each thread is processing
memory:
--video-memory-strategy {strict,moderate,tolerant} balance fast frame processing and low vram usage
--system-memory-limit [0-128] limit the available ram that can be used while processing
face analyser:
--face-analyser-order {left-right,right-left,top-bottom,bottom-top,small-large,large-small,best-worst,worst-best} specify the order in which the face analyser detects faces.
--face-analyser-age {child,teen,adult,senior} filter the detected faces based on their age
--face-analyser-gender {female,male} filter the detected faces based on their gender
--face-detector-model {many,retinaface,scrfd,yoloface,yunet} choose the model responsible for detecting the face
--face-detector-size FACE_DETECTOR_SIZE specify the size of the frame provided to the face detector
--face-detector-score [0.0-1.0] filter the detected faces base on the confidence score
--face-landmarker-score [0.0-1.0] filter the detected landmarks base on the confidence score
face selector:
--face-selector-mode {many,one,reference} use reference based tracking or simple matching
--reference-face-position REFERENCE_FACE_POSITION specify the position used to create the reference face
--reference-face-distance [0.0-1.5] specify the desired similarity between the reference face and target face
--reference-frame-number REFERENCE_FRAME_NUMBER specify the frame used to create the reference face
face mask:
--face-mask-types FACE_MASK_TYPES [FACE_MASK_TYPES ...] mix and match different face mask types (choices: box, occlusion, region)
--face-mask-blur [0.0-1.0] specify the degree of blur applied the box mask
--face-mask-padding FACE_MASK_PADDING [FACE_MASK_PADDING ...] apply top, right, bottom and left padding to the box mask
--face-mask-regions FACE_MASK_REGIONS [FACE_MASK_REGIONS ...] choose the facial features used for the region mask (choices: skin, left-eyebrow, right-eyebrow, left-eye, right-eye, eye-glasses, nose, mouth, upper-lip, lower-lip)
frame extraction:
--trim-frame-start TRIM_FRAME_START specify the the start frame of the target video
--trim-frame-end TRIM_FRAME_END specify the the end frame of the target video
--temp-frame-format {bmp,jpg,png} specify the temporary resources format
--keep-temp keep the temporary resources after processing
output creation:
--output-image-quality [0-100] specify the image quality which translates to the compression factor
--output-image-resolution OUTPUT_IMAGE_RESOLUTION specify the image output resolution based on the target image
--output-video-encoder {libx264,libx265,libvpx-vp9,h264_nvenc,hevc_nvenc,h264_amf,hevc_amf} specify the encoder use for the video compression
--output-video-preset {ultrafast,superfast,veryfast,faster,fast,medium,slow,slower,veryslow} balance fast video processing and video file size
--output-video-quality [0-100] specify the video quality which translates to the compression factor
--output-video-resolution OUTPUT_VIDEO_RESOLUTION specify the video output resolution based on the target video
--output-video-fps OUTPUT_VIDEO_FPS specify the video output fps based on the target video
--skip-audio
没有合适的资源?快使用搜索试试~ 我知道了~
下一代的AI换脸器实现
共98个文件
py:85个
yml:2个
ini:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 102 浏览量
2024-03-18
09:14:18
上传
评论
收藏 1.25MB ZIP 举报
温馨提示
下一代的AI 换脸器和增强器。
资源推荐
资源详情
资源评论
收起资源包目录
facefusion-master.zip (98个子文件)
facefusion-master
.flake8 71B
.editorconfig 129B
facefusion
vision.py 7KB
__init__.py 0B
content_analyser.py 3KB
normalizer.py 2KB
ffmpeg.py 7KB
face_store.py 1KB
typing.py 4KB
face_masker.py 5KB
memory.py 685B
wording.py 10KB
download.py 2KB
choices.py 3KB
common_helper.py 761B
installer.py 3KB
process_manager.py 865B
core.py 25KB
face_helper.py 6KB
filesystem.py 3KB
globals.py 2KB
face_analyser.py 25KB
logger.py 1KB
uis
__init__.py 0B
typing.py 1KB
assets
fixes.css 113B
overrides.css 1KB
choices.py 353B
components
target.py 2KB
__init__.py 0B
benchmark_options.py 915B
common_options.py 1KB
source.py 2KB
face_masker.py 6KB
memory.py 1KB
benchmark.py 5KB
output_options.py 9KB
trim_frame.py 3KB
output.py 3KB
preview.py 9KB
face_selector.py 7KB
webcam_options.py 1KB
about.py 526B
temp_frame.py 1KB
frame_processors.py 2KB
frame_processors_options.py 9KB
face_analyser.py 6KB
execution_queue_count.py 923B
execution.py 1KB
execution_thread_count.py 940B
webcam.py 7KB
core.py 5KB
layouts
benchmark.py 2KB
default.py 2KB
webcam.py 1KB
metadata.py 248B
processors
__init__.py 0B
frame
__init__.py 0B
typings.py 1KB
modules
__init__.py 0B
face_enhancer.py 11KB
lip_syncer.py 11KB
face_debugger.py 9KB
face_swapper.py 15KB
frame_enhancer.py 9KB
choices.py 1KB
core.py 4KB
globals.py 545B
audio.py 3KB
statistics.py 2KB
execution.py 3KB
config.py 2KB
LICENSE.md 43B
.github
preview.png 1.18MB
workflows
ci.yml 811B
FUNDING.yml 54B
tests
test_memory.py 275B
__init__.py 0B
test_ffmpeg.py 4KB
test_process_manager.py 386B
test_cli.py 4KB
test_audio.py 925B
test_common_helper.py 706B
test_config.py 2KB
test_wording.py 175B
test_face_analyser.py 3KB
test_normalizer.py 2KB
test_execution.py 696B
test_vision.py 7KB
test_filesystem.py 3KB
test_download.py 1KB
facefusion.ini 1KB
run.py 92B
install.py 179B
mypy.ini 175B
requirements.txt 143B
.gitignore 22B
README.md 10KB
共 98 条
- 1
资源评论
sjx_alo
- 粉丝: 1w+
- 资源: 1206
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功