aihacker111 / Efficient-Live-Portrait

Fast running Live Portrait with TensorRT and ONNX models
MIT License
120 stars 10 forks source link

Unable to run run_live_portrait.py on Google Colab #14

Open NeuralFalconYT opened 1 month ago

NeuralFalconYT commented 1 month ago

In the Google Colab When I'm running this code !python /content/Efficient-Live-Portrait/run_live_portrait.py -v /content/driving_video.mp4 -i /content/source.jpg -e -fp16

but it asking for run_live_portrait.py: error: the following arguments are required: -ref/--ref_image

--ref_image mean ? Same as source image or first frame of the driving video where a clear face is available?

for the --ref_image image I tried with both same source image and first frame of the driving video where face is available

2024-07-22 14:53:18.480793999 [W:onnxruntime:, execution_frame.cc:879 VerifyOutputSizes] Expected shape from model of {12800,4} does not match actual shape of {8192,4} for output 451
.......................................................................................................................
.......................................................................................................................
2024-07-22 14:53:18.481856866 [W:onnxruntime:, execution_frame.cc:879 VerifyOutputSizes] Expected shape from model of {12800,1} does not match actual shape of {8192,1} for output 448
^C

But in both cases, the code stopped working.

My driving video was 1:1 format and in each frame the face is available

aihacker111 commented 1 month ago

Ref image is a single face image you want to adapt for checking face id in the source image, source image should is the multiple faces image I’ll update new code , for you can turn on/off the face id for easy running source

NeuralFalconYT commented 1 month ago

Thanks for the quick response.

On Mon, 22 Jul 2024, 8:34 pm aihacker111, @.***> wrote:

Ref image is a single face image you want to adapt for checking face id in the source image, source image should is the multiple faces image I’ll update new code , for you can turn on/off the face id for easy running source

— Reply to this email directly, view it on GitHub https://github.com/aihacker111/Efficient-Live-Portrait/issues/14#issuecomment-2243184826, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJQ7I7IXR7LZZNBO4WDUOR3ZNUNOFAVCNFSM6AAAAABLIQFEUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGE4DIOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

PiovisTeam commented 1 month ago

Hey @aihacker111 was the code updated? I got the same error: run_live_portrait.py: error: the following arguments are required: -ref/--ref_image

aihacker111 commented 1 month ago

@PiovisTeam @NeuralFalconYT I'm still work faster for update new feature for animation with multiple face motion on multiple face on images, please don't test right now

NeuralFalconYT commented 1 month ago

No problem. Bro, take your time, take a rest. 😌

On Tue, 23 Jul 2024, 5:16 pm aihacker111, @.***> wrote:

@PiovisTeam https://github.com/PiovisTeam @NeuralFalconYT https://github.com/NeuralFalconYT I'm still work faster for update new feature for animation with multiple face motion on multiple face on images, please don't test right now

— Reply to this email directly, view it on GitHub https://github.com/aihacker111/Efficient-Live-Portrait/issues/14#issuecomment-2245015639, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJQ7I7L3QJLNAZI7IO3473DZNY7BJAVCNFSM6AAAAABLIQFEUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVGAYTKNRTHE . You are receiving this because you were mentioned.Message ID: @.***>

aihacker111 commented 1 month ago

@NeuralFalconYT Demo 2 motion in 1 image

https://github.com/user-attachments/assets/ffbf9a2a-6eda-4ae0-ac6a-284edde037cb

PiovisTeam commented 1 month ago

Thank you @aihacker111 :)

aihacker111 commented 1 month ago

@NeuralFalconYT , @PiovisTeam New update is availabled, Please try it again and read more README