williamyang1991 / DualStyleGAN

[CVPR 2022] Pastiche Master: Exemplar-Based High-Resolution Portrait Style Transfer
Other
1.61k stars 249 forks source link

Dataset_Preparation #45

Closed Chinees-zhang closed 1 year ago

Chinees-zhang commented 1 year ago

hi, there was something doubt for me that I had got only 4 face_images with a video more than 1h(109Mb). Could you please to give some suggestion?

williamyang1991 commented 1 year ago

The face detection method is suitable for artistic portraits that look like real human faces. Do your video's characters look very different from real face? What your resolution of video? I only extract large faces. You can change the code:

if d.width() >= 256 and d.height() >= 256:

You can also sample more frequently

if i % 24 > 0: # try to find a face every 24 frames
    continue
Chinees-zhang commented 1 year ago

@williamyang1991 ,Thank you for your reply very much! Just like what you said that the video resolution is too low, and I have solved this issue with another video.