Closed bimunlp closed 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
should customize the file path like '/home/xx/xx/generated.mp4'
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