Red Hat 安装PaddleBoBo数字人

@创建于:2022.12.29
@修改于:2022.12.29

1、本地化安装

# 项目地址
# https://github.com/JiehangXie/PaddleBoBo

git clone https://gitee.com/xiejiehang/PaddleBoBo.git -b develop

pip install paddlepaddle==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install ppgan==2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install paddlespeech==1.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddleaudio==1.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

cd PaddleBoBo
python create_virtual_human.py --config default.yaml

2、OSError: cannot load library ‘libsndfile.so’: libsndfile.so: cannot open shared object file: No such file or directory

(pp) [root@p-96b7-amfg PaddleBoBo]# python general_demo.py --human ./file/input/test.mp4 --output ../output.mp4 --text 各位开发者大家好
Traceback (most recent call last):
  File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 151, in <module>
    raise OSError('sndfile library not found')
OSError: sndfile library not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 178, in <module>
    _snd = _ffi.dlopen(_os.path.join(_path, '_soundfile_data', _packaged_libname))
OSError: cannot load library '/root/anaconda3/envs/pp/lib/python3.7/site-packages/_soundfile_data/libsndfile.so': /root/anaconda3/envs/pp/lib/python3.7/site-packages/_soundfile_data/libsndfile.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "general_demo.py", line 6, in <module>
    from PaddleTools.TTS import TTSExecutor
  File "/root/program/PaddleBoBo/PaddleTools/TTS.py", line 6, in <module>
    import soundfile as sf
  File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 189, in <module>
    _snd = _ffi.dlopen(_libname)
OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory
# redhat和centos用yum,ubuntu用apt
yum install libsndfile1
apt install libsndfile1

解决“OSError: cannot load library ‘libsndfile.so‘ ”问题

3、/bin/sh: ffmpeg: command not found

在这里插入图片描述

CentOS服务器中安装FFmpeg的完整步骤

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值