DinoMan / speech-driven-animation

947 stars 289 forks source link

Result dimension and audio speed #15

Open vyalovvldmr opened 5 years ago

vyalovvldmr commented 5 years ago

Hi! I've just run the code and generated video successfully. But I've got a copule of questions.

  1. The result video dimension is very small despite of source image dimension which is much bigger. Is there any ability to increase result video dimension?

  2. Audio in the result mp4 is slowed down dramatically. Why is it so?

DinoMan commented 5 years ago

Hi the model is trained to generate images at 96x128. I'm afraid it can't do larger images unless we retrain it with larger videos in the training set.

Have you manually provided the sampling rate of your audio? it sounds to me like there is a mismatch between the actual audio sampling rate and the one provided to the animator

DLSeed commented 5 years ago

what I found in Q2: the wav track must be mono channel, if input a stereo track, output will slow down and double the playtime...

DinoMan commented 5 years ago

Oh yes I forgot to mention that I guess in the documentation. The track should be mono. I presume this causes it to have 2x the samples when reshaping takes place.

vyalovvldmr commented 5 years ago

Wow! Thank you! I'll try mono. Do you have any plans for retraining net in order to get larger dimension?

vyalovvldmr commented 5 years ago

Yep, mono fixed the issue!

DinoMan commented 5 years ago

To be honest it was of a memory and time restriction than anything else. The model takes 11GB on the GPU to train and trains for 1-2 weeks (depending on the dataset size). If we have an update in the future I'll post about it here.

ustc-baize commented 4 years ago

@wooloodya hello,i meet the question va = sda.VideoAnimator(gpu=0) # Instantiate the animator has been running for over an hour. it keeps showing "Downloading the face detection CNN. Please wait..." and result nothing else. There is noting wrong with my GPU, would you tell me how to solve this problem? thank you so much!