当前位置: 首页 > news >正文

基于VibeVoice搭建语音合成demo

https://github.com/vibevoice-community/VibeVoice.git,该项目的优势是支持微调模型

一、环境配置

使用A800的机器,环境配置如下
在这里插入图片描述

二、安装过程

git clone https://github.com/vibevoice-community/VibeVoice.git
cd VibeVoiceapt update
apt install -y curl# 安装uv
curl -LsSf https://astral.sh/uv/install.sh | sh   
source $HOME/.local/bin/env# 创建环境
uv venv
source .venv/bin/activate
uv pip install -e . --index-url https://pypi.tuna.tsinghua.edu.cn/simple# 安装pip
python -m ensurepip --upgrade#查看python版本
python --version #显示:Python 3.12.7
#查看torch相关信息版本
import torch
print(torch._C._GLIBCXX_USE_CXX11_ABI) #显示:TRUE
print(torch.__version__) #显示:2.7.0+cu126
print(torch.version.cuda) #显示:12.6综合以上python版本信息和torch相关的版本信息,我应该选择cu12torch2.7cxx11abiTrue-cp312,
因此我下载的是下面的flash_attention.whl
# 安装torch
/root/private_data/work_space/VibeVoice/.venv/bin/pip3 install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu118 -i https://pypi.tuna.tsinghua.edu.cn/simple --timeout 3600# 安装flash_attention
# flash_attention的版本非常讲究,python的版本号、cuda的版本号、torch的版本号、cxx11abi是否为True都是有讲究的,要选对版本
/root/private_data/work_space/VibeVoice/.venv/bin/pip3 install flash_attn-2.8.2+cu12torch2.7cxx11abiTRUE-cp311-cp311-linux_x86_64.whl#安装ffmpeg
apt install -y ffmpeg# 启动gradio网页
python demo/gradio_demo.py --model_path /root/private_data/models/microsoft/VibeVoice-7B --device cuda --share --port 8080
http://www.dtcms.com/a/582992.html

相关文章:

  • react项目使用json-server模拟接口获取数据
  • 荆州建设局网站邯郸信息港征婚
  • 有口碑的番禺网站建设深圳招聘网最新招聘信息
  • 网站前台如何刷新整合营销案例
  • 可以自己做网站卖东西搜索引擎优化规则
  • C++ this指针、常函数、内联函数
  • 网页设计制作网站大一素材网站集群怎么做
  • Hudson River Trading VO 面经分享|一场关于极限思维与逻辑速度的考验
  • html5企业网站案例企业免费自助建站系统
  • 企业建设网站价格成都专业网站搭建公司
  • 西宁建设网站软件百度导航最新版本免费下载
  • 网站开发后端菜鸟教程网站呢建设
  • JavaScript 使用技巧
  • 提高网站互动性台州住房和城乡建设部网站
  • Spark-3.5.7文档2 - RDD 编程指南
  • 网站公司做网站修改会收费吗电子商务类型的网站
  • flowable使用01
  • 做国外直播网站有哪些渭南seo快速排名
  • 做的网站百度找不到广州市天河区工程建设监督网站
  • 网站攻击方式wordpress手机上用的
  • 攻防世界-Misc-掀桌子
  • 如何用SETNX实现分布式锁
  • 广州市品牌网站建设平台WordPress文章首页缩进
  • 泰兴网站推广wordpress vaptcha
  • AI与就业:在变革中主动驾驭未来
  • container_of宏
  • 创建网站要钱吗windows系统没有wordpress
  • 网站开发流程三大部分测评网站怎么做
  • iPhone 17 Pro Max 的评测和用户反馈
  • Python 中的异步编程:从基础到实战