os:
win11+cuda11.3+anaconda3-5.2.0+python3.8
conda create -n LSP python=3.8
conda activate LSP
pytorch:
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
python
import torch
torch.cuda.is_available()
安装依赖
conda install ffmpeg #为什么是conda我也不懂但是就是有用
pip install librosa==0.7.0
pip install numba==0.48.0 #librosa和numba是我的经验 先保证这俩版本其他的可以随意一点
# 照着requirements安装,我是一个一个敲的 免得不匹配
pip install albumentations==0.5.2 #这个版本是固定的
# 其他的包 我都是直接pip 这里是我尝试的可以运行的版本
pip install tqdm==4.65.0
pip install opencv_python==4.7.0.72
pip install scipy==1.9.1
pip install dominate==2.7.0
pip install numpy==1.23.5
pip install beautifulsoup4==4.12.2
pip install scikit-image==0.20.0
pip install h5py==3.8.0 #这个requiremens没写 但是要装
遇到的问题
load() missing 1 required positional argument: 'Loader'
因为yaml版本是6.0
把
yaml.load(file) #改成
yaml.safe_load(file) #即可
把data文件夹里需要的东西从谷歌云盘下好就可以运行了
python demo.py --id May --driving_audio ./data/Input/00083.wav --device cuda