DinoMan / speech-driven-animation

944 stars 290 forks source link

something wrong with torchaudio,neeed help #8

Open patotomorrow opened 5 years ago

patotomorrow commented 5 years ago

as the title,torchaudio in ubuntu

error: RuntimeError: Failed to parse the argument list of a type annotation: name 'Optional' is not defined

xrenaa commented 5 years ago

you can comment all the use of torchaudio in sda.py and use the code

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 = Image.open("example/image.bmp") vid, aud = va(frame, audio_clip, fs=fs)

and there are some small bugs in the code you can change it in the VideoAnimator

erjihaoshi commented 5 years ago

as the title,torchaudio in ubuntu

error: RuntimeError: Failed to parse the argument list of a type annotation: name 'Optional' is not defined

I run the code in colab ,and get the same error as yours,name 'Optional' is not defined then I run the code in windows, I comment the(import torchvision) in sda.py run the code 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 = Image.open("example/image.bmp") vid, aud = va(frame, audio_clip, fs=fs) but get an error _pickle.UnpicklingError: invalid load key, 'v'.

xrenaa commented 5 years ago

as the title,torchaudio in ubuntu error: RuntimeError: Failed to parse the argument list of a type annotation: name 'Optional' is not defined

I run the code in colab ,and get the same error as yours,name 'Optional' is not defined then I run the code in windows, I comment the(import torchvision) in sda.py run the code 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 = Image.open("example/image.bmp") vid, aud = va(frame, audio_clip, fs=fs) but get an error _pickle.UnpicklingError: invalid load key, 'v'.

@erjihaoshi you should install git LFS and re-use git clone to download this repo

erjihaoshi commented 5 years ago

I do as you said but i get nothing in my ./sda/data @

NelsonScott commented 1 year ago

@erjihaoshi see https://github.com/DinoMan/speech-driven-animation/issues/51