OpenTalker / SadTalker

[CVPR 2023] SadTalker:Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation
https://sadtalker.github.io/
Other
11.73k stars 2.19k forks source link

torch版本兼容性问题,无法在Mac M3上运行 #914

Open trempcn opened 4 months ago

trempcn commented 4 months ago

在Mac M3上报兼容性的错误。

Chip: Apple M3 MacOS: 14.5 (23F79)

我的环境:

print(torch.version) 2.3.0 print(torchvision.version) 0.15.0

运行「bash webui.sh」时得到的output结果: (sadtalker) (myenv) terrylee@Terrys-MacBook-Pro SadTalker % bash webui.sh

################################################################ Install script for SadTalker + Web UI Tested on Debian 11 (Bullseye) ################################################################

################################################################ Running on terrylee user ################################################################

################################################################ Repo already cloned, using it as install directory ################################################################

################################################################ Create and activate python venv ################################################################

################################################################ Launching launcher.py... ################################################################ Python 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] Commit hash: cd4c0465ae0b54a6f85af57f5c65fec9fe23e7f8 Installing torch and torchvision ERROR: Could not find a version that satisfies the requirement torch==1.12.1 (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0) ERROR: No matching distribution found for torch==1.12.1 Traceback (most recent call last): File "/Users/terrylee/myLLM/SadTalker/launcher.py", line 203, in prepare_environment() File "/Users/terrylee/myLLM/SadTalker/launcher.py", line 187, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "/Users/terrylee/myLLM/SadTalker/launcher.py", line 70, in run raise RuntimeError(f"""{errdesc or 'Error running command'}. RuntimeError: Couldn't install torch. Command: "/Users/terrylee/myLLM/SadTalker/venv/bin/python3" -m pip install torch==1.12.1 torchvision==0.13.1 Error code: 1

请教:有什么办法解决这个问题么? 问了ChatGPT,告诉我要重新安装PyTorch,按照下面重新安装后,也是同样的问题。

git clone --recursive https://github.com/pytorch/pytorch

cd pytorch

git checkout tags/v1.12.1

python setup.py install