harlanhong / CVPR2022-DaGAN

Official code for CVPR2022 paper: Depth-Aware Generative Adversarial Network for Talking Head Video Generation
https://harlanhong.github.io/publications/dagan.html
Other
970 stars 126 forks source link

How to preprocess the image data? #36

Closed ChawDoe closed 2 years ago

ChawDoe commented 2 years ago

If I have an face image as the driving image. How to properly crop it? Could you provide the script? I tested the crop-video.py but it could not work for a single image.

harlanhong commented 2 years ago

You can use a face detector and crop the face according to the returned box.