Browse Source

Update 'README.md'

天问 2 months ago
parent
commit
76c2030ecb
1 changed files with 34 additions and 1 deletions
  1. 34 1
      README.md

+ 34 - 1
README.md

@@ -1,3 +1,36 @@
 # SadTalker
 
-一图片与音频文件合成人物说话动画
+一图片与音频文件合成人物说话动画
+
+## Develop
+
+```
+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
+
+
+```
+