How to deploy SadTalker locally on windows to realize AI digital human

Equipment configuration: CPU E3-1240v3, RAM 32G, SSD 1T, GPU0 Nvidia 1080ti, GPU1 Nvidia T4
OS: Windows 10 Professional Edition
[python installation]
1. Download and install python 3.10.9
https://www.python.org/ftp/ python/3.10.9/python-3.10.9-amd64.exe
2. Download and install git
https://git-scm.com/downloads
 
3. Download and decompress ffmpeg
and open: https://github.com/GyanD/codexffmpeg/ releases
Download: ffmpeg-6.0-full_build-shared.zip
Unzip: ffmpeg-6.0-full_build-shared.zip to the root directory (for example: c:\ffmpeg-6.0-full_build-shared)
will C:\ffmpeg-6.0-full_build- shared\bin is added to the system environment variable path
 
4. Clone the project
cd c:\
git clone https://github.com/OpenTalker/SadTalker

5. Download CheckPoints
Baidu Netdisk: https://pan.baidu.com/s/1P4fRgk9gaSutZnn8YW034Q?pwd=sadt
After downloading, unzip sadtalker_checkpoints_v0.0.2.zip to get the checkpoints directory and
copy the checkpoints directory to c:\SadTalker

6. Start and run
cd c:\SadTalker
webui.bat

For the first time, the dependency package will be installed through launcher.py, and it will take a long time.

[Installation with Anaconda - Recommended]
1. Download and install git
https://git-scm.com/downloads
 
2. Download and decompress ffmpeg
Open: https://github.com/GyanD/codexffmpeg/releases
Download: ffmpeg-6.0-full_build -shared.zip
Unzip: ffmpeg-6.0-full_build-shared.zip to the root directory (for example: c:\ffmpeg-6.0-full_build-shared)
Add C:\ffmpeg-6.0-full_build-shared\bin to the system environment variable inside the path

3. Install Anaconda:
Open: https://www.anaconda.com/download/
Download Anaconda and install
 
4. Clone the project
cd c:\
git clone https://github.com/OpenTalker/SadTalker

5. Download CheckPoints
Baidu Netdisk: https://pan.baidu.com/s/1P4fRgk9gaSutZnn8YW034Q?pwd=sadt
After downloading, unzip sadtalker_checkpoints_v0.0.2.zip to get the checkpoints directory and
copy the checkpoints directory to c:\SadTalker

6. Create environment
Click "Start", in Ananconda, open Anaconda Powershell Prompt
cd c:\SadTalker
Update Conda to the latest version: conda update conda
build environment: conda create -n sadtalker python==3.10.9
Activate environment: conda activate Sadtalker
installs dependencies and starts: python Launcher.py

7. Start and run
cd c:\SadTalker
python app.py

You can also edit a run.bat, put it under c:\SadTalker, and run it with one click.
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\anaconda3\shell\condabin\conda-hook.ps1' ; conda activate sadtalker ; python app. py"
 

Guess you like

Origin blog.csdn.net/qq_43335960/article/details/131301126