nnabla-examples
nnabla-examples copied to clipboard
Record Motion Reference Video part
Hi ! when i record the video from my own computer(about 5 seconds)
then i run !python animate.py --source $input_img
--driving video.mp4
--adapt-movement-scale --fps 24
to realize the function of first order motion model.
After that , i find The video has been extended to 140 seconds , do you know how to fix it?
Sorry for my late reply, and thank you for pointing the issue!
Here is the code to load input video: https://github.com/sony/nnabla-examples/blob/master/facial-motion-transfer/first-order-model/frames_dataset.py#L42 This uses the frame rate of input video without any changes, and just set frame rate value to 24fps after processing. So, it's likely that your camera has a very high frame rate, so that the output video has long duration.
But, it might be able to load at the expected fps if fps value is specified, so we'll update the code.