安装Anaconda
下载页面:https://www.anaconda.com/download/
Clone代码仓
git clone https://github.com/modelscope/facechain.git --depth 1
GIT_LFS_SKIP_SMUDGE=1
安装依赖
cd ./facechain
pip install -r requirements.txt
pip install -U openmim
运行
修改代码
vim run_inference.py
添加如下代码:
snapshot_download('some-model-id')
运行代码
python app.py