FlashFace 模型部署教程FlashFace 专门用于制作个性化头像,提供了多种发型、头型、五官外形供用户自由搭配。 允许用户通过提供一张或几张参考人脸图像和文字提示,轻松地即时个性化自己的照片。
使用几张图片就可以生成多样的人像个性化结果,具有以下特征:
【注意】本应用推荐 24gb 显存及以上的显卡
git clone https://github.com/ali-vilab/FlashFace.git
cd FlashFace
conda create -n flashface python=3.10 -y
conda activate flashface
#安装依赖项
pip install -r requirements.txt
下载地址:https://modelscope.cn/models/iic/FlashFace
或使用以下代码:
SDK下载
pip install modelscope
from modelscope import snapshot_download
model_dir = snapshot_download('iic/FlashFace')
Git下载
git clone https://www.modelscope.cn/iic/FlashFace.git
python /FlashFace/flashface/all_finetune/demo_gradio.p

进入webui页面如下:

点击此处,立即体验FlashFace!
