KwaiVGI / LivePortrait

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

Mac M1 Connection Error and JSON Error #410

Open Gohloum opened 1 month ago

Gohloum commented 1 month ago

I believe my issue is somewhat related to issue #376, however related to Mac M1 silicon systems and I am getting the same results on my 2022 Mac Studio running Sonoma 14.6, and 2021 Macbook Pro also running Sonoma 14.6. On both I am attempting to run in Pinokio, which is working as expected with other AI tools.

As similar to #376, If I click on an example image or video, I get the JSON error. If I click on the interface tabs to change from image to video, render, or any other UI controls, I get a "Connection Time Out" instantly upon clicking.

I attempted to follow the solution given in 376 listed at https://github.com/gradio-app/gradio/pull/9277#issuecomment-2332911070, but apparently the M1 systems have changed and pip will not install any packages globally. I was able to research and tried a virtual machine through venv and I could follow those steps, however, that did not resolve the issue.

I have included a log file from the pinokio terminal which shows the load of of LivePortrait, and 2 errors. These 2 errors are output on each click in the interface. The first one was an attempt to click on an example image. The second was a click on the Source Video tab.

I followed up with the pinokio support and they sent me to you to post this issue. I feel like this is a configuration issue on the newer silicon systems, but after a few hours searching, I have not found a solution.

LivePortrait_Errors.rtf.zip

Gohloum commented 1 month ago

I couldn't leave this one alone, so I decided to follow the main instructions for installing.

I was able to install everything and get it to run on my localhost, but again I got the connection time errors. Now that I have a LivePortrait env running, I ran the solutions at https://github.com/gradio-app/gradio/pull/9277#issuecomment-2332911070 and they were successful.

Everything seems to work fine up until writing out the result after animate and I am getting: Unknown encoder 'libx264'. I will post this as a separate issue.

Although I was able to resolve running locally aside from the encoder error, running via pinokio still does not work. Therefore I am not sure how to move that issue forward. Therefore I will leave this open until someone responds.

Hax0rgurl commented 1 month ago

same issue on my side running M2 with both chrome and safari