antgroup / echomimic

EchoMimic: Lifelike Audio-Driven Portrait Animations through Editable Landmark Conditioning
https://antgroup.github.io/ai/echomimic/
Apache License 2.0
3.01k stars 349 forks source link

Cannot process type as video: <class 'pathlib.WindowsPath'> #136

Open HandsomeDong opened 3 months ago

HandsomeDong commented 3 months ago

It seems that the video was generated successfully, but an exception occurred when it was displayed to the webui.

Moviepy - video ready output\tmp\output_video_with_audio.mp4
Traceback (most recent call last):
  File "C:\Users\HandsomeDong\.conda\envs\echomimic\lib\site-packages\gradio\routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\HandsomeDong\.conda\envs\echomimic\lib\site-packages\gradio\blocks.py", line 1349, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "C:\Users\HandsomeDong\.conda\envs\echomimic\lib\site-packages\gradio\blocks.py", line 1283, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\Users\HandsomeDong\.conda\envs\echomimic\lib\site-packages\gradio\components.py", line 2202, in postprocess
    raise Exception(f"Cannot process type as video: {type(y)}")
Exception: Cannot process type as video: <class 'pathlib.WindowsPath'>

image image image

HandsomeDong commented 3 months ago

Is this related to my modification of the function process_video?

image