Open erjihaoshi opened 5 years ago
in sda.py at def call(self, img, audio, fs=None, aligned=False): you should change first else:
frame = np.array(img)
or you just run : import sda import scipy.io.wavfile as wav from PIL import Image va = sda.VideoAnimator(gpu=0)# Instantiate the aminator fs, audio_clip = wav.read("example/audio.wav")
frame = "example/image.bmp" vid, aud = va(frame, audio_clip, fs=fs)
when i successfully import torchaudio in google colab ,but i get error AttributeError: 'BmpImageFile' object has no attribute 'ndim', Does anyone konw how to fix it ?