yangxy / GPEN

2.45k stars 451 forks source link

[feature suggestion] Simplify for small face #101

Open Michaelwhite34 opened 2 years ago

Michaelwhite34 commented 2 years ago

For a video (image) that contains the whole person,the area of the face is way smaller than 512512,so I have to run the script several times to get the result. To make it simpler,first we calculate the size of the image ab with cropped face area 512512. Then we find the least number n such that (2^n)original size is equal or large than ab. Then using super-res 2x n times and downscale it to ab. Finally paste the restored 512*512 face to the image.

Michaelwhite34 commented 2 years ago

Also,can we make the bounding box bigger to enhance more hair (sometimes only a small of hair is in the box) ?

yangxy commented 2 years ago

Also,can we make the bounding box bigger to enhance more hair (sometimes only a small of hair is in the box) ?

Thanks for the advice. I am working on it.

blessedcoolant commented 2 years ago

Also,can we make the bounding box bigger to enhance more hair (sometimes only a small of hair is in the box) ?

Thanks for the advice. I am working on it.

Hey, just wondering if there's any update on the hair bounding box setting?

yangxy commented 2 years ago

Also,can we make the bounding box bigger to enhance more hair (sometimes only a small of hair is in the box) ?

Thanks for the advice. I am working on it.

Hey, just wondering if there's any update on the hair bounding box setting?

Not yet

Michaelwhite34 commented 2 years ago

Any update?