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
957 stars 125 forks source link

How to preprocess the image data? #36

Closed ChawDoe closed 1 year ago

ChawDoe commented 1 year 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 1 year ago

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