face-vid2vid icon indicating copy to clipboard operation
face-vid2vid copied to clipboard

There is a problem with the generated video, what is the cause?

Open applech666 opened this issue 3 years ago • 9 comments

Thank you for your shared model! output

I used your pre-trained model. What's the problem?

thanks!

applech666 avatar Nov 18 '21 03:11 applech666

Which did you use, motion transfer or reconstruction? I guess there is problem with your source image.

zhengkw18 avatar Nov 18 '21 03:11 zhengkw18

test source image. motion transfer

run command is :python evaluate.py --ckp=100 --source=005.jpg --driving=datasets/vox/test/id10343#TFIZ9vWg6EE#003826#003939.mp4

applech666 avatar Nov 18 '21 03:11 applech666

This is strange. You can try other source/driving to see which causes the problem. Several reasons are possible:

  1. driving has bad illumination
  2. source/driving face should be resized
  3. source jpg format image is not correctly read
  4. Asian people are out of the training dataset distribution so not properly modeled

zhengkw18 avatar Nov 18 '21 04:11 zhengkw18

According to your suggestion, I changed the driving video and the original image, but the result is still terrible. generated: output drive video: 0000000 source image: test (2) run command: python evaluate.py --ckp=100 --source=test.png --driving=datasets/vox/test/id10070#FWHkEnS8v-M#001286#001433.mp4

applech666 avatar Nov 18 '21 06:11 applech666

How do I understand it here?

1637216932(1)

applech666 avatar Nov 18 '21 06:11 applech666

Now I think this is due to environment problems such as Pytorch version...For some reasons the pretrained model or the image is not correctly loaded. The headpose estimator is used during training so it's irrelevant.

zhengkw18 avatar Nov 18 '21 06:11 zhengkw18

I'm using torch==1.6. What about you?

applech666 avatar Nov 18 '21 06:11 applech666

You can update all your packages to latest version. Besides you can re-clone the repo to confirm there is no code change.

zhengkw18 avatar Nov 18 '21 06:11 zhengkw18

output thanks @zhengkw18 I made a mistake in solving the problem: RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

applech666 avatar Nov 18 '21 07:11 applech666