BadToBest / EchoMimic

Lifelike Audio-Driven Portrait Animations through Editable Landmark Conditioning
https://badtobest.github.io/echomimic.html
Apache License 2.0
2.26k stars 263 forks source link

Fix undefined variable error in pipeline_echo_mimic.py #79

Open touchwolf opened 1 month ago

touchwolf commented 1 month ago

What does this PR do?

This PR fixes an undefined variable error in the pipeline_echo_mimic.py script.

What is the error?

The error occurs when zero_locator_tensor is used before it is defined, causing the script to crash.

How does this fix it?

This fix ensures that zero_locator_tensor is defined before it is used, preventing the undefined variable error and allowing the script to run correctly.