Gimp-Forum.net
High to sharpen the faces of all persons - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: High to sharpen the faces of all persons (/Thread-High-to-sharpen-the-faces-of-all-persons)

Pages: 1 2


High to sharpen the faces of all persons - Stephen Liu - 11-11-2024

[attachment=12572][attachment=12572]
Hi all,

Is there any way to sharpen the faces of all persons on the photo attached.  If YES, please advise the detail steps how to do it.

Thanks in advance

Regards


RE: High to sharpen the faces of all persons - sallyanne - 11-11-2024

Unless I have put values in, dont change from default
Load Photo into Gimp
Colours - Levels - auto input levels - while in there change the value top slider (move the centre arrow to the right so clamp is .70  (Darkens it a little and brings out more detail)
Duplicate your layer and desaturate it in luminance mode. 
Go to Filters, enhance, highpass. 155.7 std dev and 1.962 contrast 
Now put it in overlay mode and drop the opacity while in layers to 46. (Sharpens)
Merge your two layers.
Now using colours, shadows-highlights take the shadows up to 52.85 and the highlights down to -52.33.
Filters enhance - sharpen unsharp mask

You could also try a little burn Dodge  and convolve Blur on the faces with a small brush. Burn to bring out the features more and convolve to sharpen them even more.


RE: High to sharpen the faces of all persons - PixLab - 11-12-2024

(11-11-2024, 03:28 PM)Stephen Liu Wrote: Is there any way to sharpen the faces of all persons on the photo attached.  If YES, please advise the detail steps how to do it.

Just go to Filters > Enhance > Sharpen (Unsharp Mask)..., play with sliders to your liking also you can make a selection of the face before opening the filter.

[attachment=12576]


RE: High to sharpen the faces of all persons - denzjos - 11-12-2024

What I tried as a simple and quick solution: select the faces (I did it with the 'Ellipse Select Tool') and copy the selection to a new layer (Edit / Paste As / New Layer in Place). Then set the layer mode to 'Multiply' and set the opacity of this layer to 50%.
[attachment=12578]


RE: High to sharpen the faces of all persons - Krikor - 11-12-2024

I think the post https://www.gimp-forum.net/Thread-Look-ma-no-plugins-the-Freaky-details-effects-using-of-the-shelf-Gimp-2-10 could be useful in this case.

Here is the post cited in the link above:

[attachment=12579]


RE: High to sharpen the faces of all persons - inkdolls - 11-12-2024

Sorry, this is not totally related to Gimp, but I just couldn't resist, I had to run this with GFPGAN. For this low resolution, it might work.

[attachment=12582]

This one from Denzjos' image. The result is a mismatch of detail in the faces and clothes.

[attachment=12584]

I still get a kick from this face restoration thing.
[attachment=12585]
[attachment=12586]


RE: High to sharpen the faces of all persons - Krikor - 11-12-2024

(11-12-2024, 05:30 PM)inkdolls Wrote: Sorry, this is not totally related to Gimp, but I just couldn't resist, I had to run this with GFPGAN. For this low resolution, it might work.



This one from Denzjos' image. The result is a mismatch of detail in the faces and clothes.



I still get a kick from this face restoration thing.

Hi, I accessed the link you provided in an attempt to try this tool but I found it all very complex and I couldn't understand how to run this application;

Could you explain the steps on how to run/install this GFPGAN?

Does it work on Windows? Does it require extra files or does it work as a plugin?

Is there a website that already provides this service?

Thanks for the information.

EDITED:

Having the option to try it without the need for installations is preferable.

Here are two links for those who want to try it but have difficulties with installations:

https://huggingface.co/spaces/nightfury/Image_Face_Upscale_Restoration-GFPGAN

https://huggingface.co/spaces/Xintao/GFPGAN


RE: High to sharpen the faces of all persons - denzjos - 11-12-2024

(11-12-2024, 05:30 PM)inkdolls Wrote: Sorry, this is not totally related to Gimp, but I just couldn't resist, I had to run this with GFPGAN. For this low resolution, it might work.



This one from Denzjos' image. The result is a mismatch of detail in the faces and clothes.



I still get a kick from this face restoration thing.
@inkdolls, I only made the faces that Stephin Liu asked. Doing the workflow without the selection, then the whole photo match. You can then correct the colors using the (automatic) levels or using the white, gray and black points levels. It is always difficult to fix small faces (not the group Wink ) because there is usually no graphical information about these areas in the photo and some filters just add noise to give the impression that the photo is sharper. That's why restoring faces using AI sometimes looks great, but the result is usually a look-alike person. Thanks for the GFPGAN link. Cool
[attachment=12590]


RE: High to sharpen the faces of all persons - inkdolls - 11-13-2024

(11-12-2024, 06:46 PM)Krikor Wrote: Does it work on Windows? Does it require extra files or does it work as a plugin?

Is there a website that already provides this service?
Yes, you can run on any platform where Python runs, including WIndows. The extra files it needs are the trained models and you could say all the huge dependencies it requires. It's not a plugin, but some AI interfaces add it as an option to refine faces after image generation.

Yes, there are online demos, I guess you can find the same links that I can. The problem is sometimes there's a long queue and you get long delays, if anything at all. I used it extensively online when I first heard about it.

(11-12-2024, 06:46 PM)Krikor Wrote: Could you explain the steps on how to run/install this GFPGAN?

I can try to help if you really want to install it, but I'm sorry to say local installation is difficult if you haven't got some knowledge of Python and console commands. These are the instructions, but those will probably not make any sense to the casual user. It will take a lot of disk space and dealing with all the versions of all those Python extensions (and Python itself) can be a real chore.

There's also the option of running it on Google Colab, if you can't make a local install, but you need the knowledge anyway.

(11-12-2024, 07:36 PM)denzjos Wrote: @inkdolls, I only made the faces that Stephin Liu asked. Doing the workflow without the selection, then the whole photo match. You can then correct the colors using the (automatic) levels or using the white, gray and black points levels. It is always difficult to fix small faces (not the group Wink ) because there is usually no graphical information about these areas in the photo and some filters just add noise to give the impression that the photo is sharper. That's why restoring faces using AI sometimes looks great, but the result is usually a look-alike person. Thanks for the GFPGAN link. Cool
Yeah, too much information is lost, AI can't do any more than what the trained models provide, you'll hardly get any resemblance to the actual people from such a poor source.

You're welcome. And thanks to you, I didn't know about NAPS.


RE: High to sharpen the faces of all persons - Stephen Liu - 11-13-2024

[quote pid='40914' dateline='1731462092']
(11-12-2024, 06:46 PM)Krikor Wrote: Does it work on Windows? Does it require extra files or does it work as a plugin?

Is there a website that already provides this service?
Yes, you can run on any platform where Python runs, including WIndows. The extra files it needs are the trained models and you could say all the huge dependencies it requires. It's not a plugin, but some AI interfaces add it as an option to refine faces after image generation.

Yes, there are online demos, I guess you can find the same links that I can. The problem is sometimes there's a long queue and you get long delays, if anything at all. I used it extensively online when I first heard about it.
[/quote]
Hi inkdolls,

I'll try installing GFPGAN on Ubuntu 22.04 desktop later.  Is it a plugin of GIMP?

Regards