一必要条件
VALL-E X安装要求:
官方文档要求使用pip安装,必须使用Python 3.10,CUDA 11.7 ~ 12.0,PyTorch 2.0+
请注意最后的PyTorch2.0+这个条件,会成为安装路上最大的绊脚石。
二安装Python
下载地址:www.python.org
网页打开一直向下滑动到底部,找到“Downloads”,在下面有一个“All releases”进入历史版本下载界面下载指定的3.10.0
找到Python3.10然后点击下载,在下载页面找到windows installer下载
下载完成后运行安装程序
勾选“Add python.exe to PATH”后点击Install Now进行安装。
三安装CUDA12.0
下载地址:https://developer.nvidia.com/cuda-toolkit-archive
打开后找到“CUDA Toolkit 12.0.0”
然后选择你的系统版本经行下载,安装方式推荐选择本地安装exe(local)
下载完成运行安装程序
点ok进行安装,同意软件协议,使用精简安装。
四安装PyTorch2.0.0
官网地址:https://pytorch.org/get-started/previous-versions/
在这里可以选择版本,建议下载到本地再使用使用pip安装
官方安装指令:
# ROCM 5.4.2 (Linux only)
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/rocm5.4.2
# CUDA 11.7
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1
# CUDA 11.8
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
# CPU only
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu
win+r打开命令行工具
我是用的时cpu运行,使用的指令是
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu
但是安装过程Pytorch可能会下载失败,推荐使用本地安装
本地安装需要先安装torchvision和torchaudio依赖,否则会报错
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
encodec 0.1.1 requires torchaudio, which is not installed.
vocos 0.1.0 requires torchaudio, which is not installed.
win+r打开命令行,输入
pip install torchvision==0.15.1 torchaudio==2.0.1
安装依赖,然后下载Pytorch2.0.0的安装文件
可以使用迅雷或者浏览器通过下面地址下载Pytorch2.0.0文件到本地,下载完成的文件为:torch-2.0.0+cpu-cp310-cp310-win_amd64.whl
https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp310-cp310-win_amd64.whl
将文件放到D盘根目录,在命令行窗口中依次输入"D:"回车,然后输入
pip install torch-2.0.0&#