xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--face_enhance paints "micro faces"

volkovaiNIH opened this issue · comments

Hello, it looks like the "--face_enhance" option sometimes over-detects faces and paints "micro" faces in weird places, usually on top of a real face on the image, but much smaller in size. I wonder if it is possible to prevent it from detecting/painting these "micro" faces, especially on top of bigger faces or right next to them.

Thank you for the great job on this tool.

issue

Some more examples in this zip file:
face-overdetection.zip
Results were obtained with the command line:
Real-ESRGAN>python inference_realesrgan.py --model_path experiments/pretrained_models/RealESRGAN_x4plus.pth --ext png --input lores --suffix RESRGAN_F --face_enhance

@volkovaiNIH Did you find any solution?

@harisreedhar Not really, I just run it with and without "--face_enhance", then combine the two results with Photoshop.

Face enhance is actually done by https://github.com/TencentARC/GFPGAN
It's there you need to ask for help.