SadTalker数字人服务器部署

一、单独SadTalker部署

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

通过音频图片生成数字人:

python inference.py --driven_audio 11.wav  --source_image 11.jpeg --enhancer gfpgan

二、安装stable-diffusion-webui

环境

python:3.11

cuda:12.1

torch:2.2.1+cu121

资源:

链接:https://pan.baidu.com/s/1GeASwRZeX81ef738WG3Kiw 
提取码:yn16 

解压stable环境的python到/usr/local/miniconda3/envs/

unzip stable.zip /usr/local/miniconda3/envs

解压stable-webui文件 

unzip stable-diffusion-webui.zip

启动服务:

python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue  --port=8080

生成视频:

tmp2zux_56m11-0-100_enhanced

问题:

  问题1:libGL.so.1: cannot open shared object file: No such file or directory

sudo apt-get update
sudo apt-get install -y libgl1-mesa-glx

问题2: python3.10/site-packages/torch/lib/libtorch_cuda.so: undefined symbol: ncclCommRegister

pip uninstall torch
pip install torch==2.1.0

问题3:ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

pip uninstall torchvision
pip install torchvision==0.16.0

1 OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer

在sd目录下创建openai并且:

git clone https://www.modelscope.cn/AI-ModelScope/clip-vit-large-patch14.git

最终:stable-diffusion-webui/openai/clip-vit-large-patch14

2 ImportError: libGL.so.1: cannot open shared object file: No such file or dir

需要更新apt,安装libgl1-mesa-glx

apt update
apt install libgl1-mesa-glx

3 AttributeError: module 'numpy' has no attribute 'complex'.

pip install --upgrade librosa

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

流光影下

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值