zhangchenxu528 / FACIAL

FACIAL: Synthesizing Dynamic Talking Face With Implicit Attribute Learning. ICCV, 2021.
GNU Affero General Public License v3.0
376 stars 83 forks source link

Error when run 5.2 Test face2video part #58

Closed muxiddin19 closed 2 years ago

muxiddin19 commented 2 years ago

Thanks for the great work! When I tried to run the Testing variant on my Linux GPU server on the 5.2 Test face2video part, I faced the problem with running code:

import ffmpeg

audio_path ='../examples/audio/obama2.wav' video_new='../examples/test_image/obama2/test_1.avi' output = '../examples/test_image/obama2/test_1_audio.avi' output_mp4 = '../examples/test_image/obama2/test_1_audio.mp4' !ffmpeg -i '$video_new' -i '$audio_path' -c copy '$output' !ffmpeg -i '$output' '$output_mp4'

File "f2a.py", line 7 ffmpeg -i $video_new -i '$audio_path' -c copy '$output' ^ SyntaxError: invalid syntax

I searched for a solution, but I could not find one. Please can you give some tips for it?

zhangchenxu528 commented 2 years ago

‘ffmpeg -i $video_new -i '$audio_path' -c copy '$output' ’ needs to be executed from the command line