KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
10.06k stars 976 forks source link

can't install onnxruntime-gpu as per instructions #87

Closed opinsky closed 3 weeks ago

opinsky commented 1 month ago

Mac M1Max on Sonoma 14.5

trying to setup as per the instructions. everything works fine up until 'pip install -r requirements.txt', which fails when trying to install onnxruntime-gpu, generating the following error message:

ERROR: Ignored the following versions that require a different python version: 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu==1.18.

I've also tried to setup a new environment with python 3.10.14, but the installation halts at the same place, with this error message:

ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0

ExtremOPS commented 1 month ago

I have a same issue. I created with pyenv a python 3.9.18 environment as described on the README.

conda create -n LivePortrait python==3.9.18

But also there the command pip install -r requirements.txt fails. It is at a later stage though but I think it is part of the same problem family.

I am trying it on a M2 Max Sonoma 14.5

ERROR: Ignored the following versions that require a different python version: 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10
ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: none)
ERROR: No matching distribution found for onnxruntime-gpu==1.18.0
opinsky commented 1 month ago

It looks like all the code was designed around CUDA - i've tried using the Mx GPU / MPS but this refactor is way above my coding skills.

zzzweakman commented 1 month ago

Hey there,

I wanted to point out that there's been some impressive work for CPU inference done on https://github.com/KwaiVGI/LivePortrait/issues/126. They've managed to get support for the M1 CPU. You might want to follow their progress as well. Great work is happening there : ) @opinsky @ExtremOPS

zzzweakman commented 3 weeks ago

Thank you for your patience, everyone. We are excited to inform you that LivePortrait now supports macOS with Apple Silicon! You can find more details here.

@opinsky @ExtremOPS