天问 76c2030ecb Update 'README.md' | 2 months ago | |
---|---|---|
README.md | 2 months ago |
一图片与音频文件合成人物说话动画
git clone https://github.com/OpenTalker/SadTalker.git
cd SadTalker
conda create -n sadtalker python=3.8
conda activate sadtalker
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
conda install ffmpeg
pip install -r requirements.txt
# 下载权重
bash scripts/download_models.sh
# https://github.com/OpenTalker/SadTalker/releases
python inference.py --driven_audio <audio.wav> \
--source_image <video.mp4 or picture.png> \
--result_dir <a file to store results> \
--still \
--preprocess full \
--enhancer gfpgan