Closed zhumazik closed 5 years ago
Yup I had not tested a branch of the code which you seem to have taken. Pull the latest changes from master and let me know if it works now.
Thanks! Method call requires "audio" variable as a torch tensor object. So I took your new line and put it outside.
`import numpy as np import torch import scipy.io.wavfile as wav from PIL import Image
va = sda.VideoAnimator(gpu=-1) fs, audio_clip = wav.read("audio.wav") still_frame = np.array(Image.open("image.bmp"))
audio_clip = torch.from_numpy(audio_clip).float() vid, aud = va(still_frame, audio_clip, fs=fs) `
Thanks! Method call requires "audio" variable as a torch tensor object. So I took your new line and put it outside.
Good to know it works for you now. However I'm pretty sure that it should work for numpy array since when I tested it yesterday i did not provide a tensor. Can you check that you are up to date with master. I am asking because ideally I would want it to take numpy arrays as input since more people are familiar with this format of data.
Hi, guys! Thanks for sharing the code!
I'm playing with it right now. I have an error though in sda.py:
`ValueError Traceback (most recent call last)