DinoMan / speech-driven-animation

947 stars 289 forks source link

How to generate video? #12

Closed bimunlp closed 5 years ago

bimunlp commented 5 years ago

va = sda.VideoAnimator(gpu=0)# Instantiate the aminator fs, audio_clip = wav.read("example/audio.wav") still_frame = Image.open("example/image.bmp") frame = np.array(still_frame) vid, aud = va(frame, audio_clip, fs=fs)

va.save_video(vid, aud, "generated.mp4")


Nothing happened when I run through the code

bimunlp commented 5 years ago

should customize the file path like '/home/xx/xx/generated.mp4'