StyleAvatar
StyleAvatar copied to clipboard
StyleAvatar Training Resizes Image Wrong
Running full style avatar but it seems to resize images the wrong way. It zooms out a lot on the face for each image (even though it was 1536 crop size from faceverse and there is a lot of space around the face). This makes most of the input images off.
Is there a mistake or is this normal?
Maybe it's normal. Full styleavatar will crop the image randomly. Can you show me an example image?
Please check if your back image is 1536. The preprocessing code has also been updated.
Here is an example; the back image is 1536 - I used the updated code. Thanks in advance!
It seems normal, and you can adjust the crop range in Line 18 of FaceVerse/faceversev3_jittor/util_functions.py. The scale 1.25 can be adjust to 1.5 if you need a larger range. And I forgot to adjust the loss term weights in this version. Please change the line for vgg_loss:
vgg_loss = vgg(F.upsample(fake_img, size=(512, 512), mode='bilinear'), image_512) * 0.01
New code will be updated soon.