r/computervision • • Jun 30 '22

Discussion Codeformer - Face Image Restoration model

143 Upvotes

18 comments sorted by

3

u/imapurplemango Jun 30 '22

Quick read on this project: https://www.qblocks.cloud/byte/codeformer-face-image-restoration-prediction-model/

Codeformer is a transformer based prediction model that restores face images.

Developed by: Shangchen Zhou, Kelvin C.K., Chan Chongyi Li, Chen Change Loy from S-Lab, Nanyang Technological University.

2

u/cs_legend_93 Jun 30 '22

Is this a form of up scaling?

2

u/imapurplemango Jun 30 '22

The end solution does appear to be upscaling as the particular face is getting high-res or improved but the process is different.

3

u/cs_legend_93 Jun 30 '22

It’s very cool! Pity that it only works for faces. Would be cool to have a docker service for upscaling 380p - 540p+ videos. last I looked the options are very sparse in this area

Nonetheless this is cool tech! Thanks for sharing

2

u/WaitformeBumblebee Jun 30 '22

well you could do generic upscaling (AI or simple) on the full image and then redo the face

1

u/3Quondam6extanT9 Jun 30 '22

Does this act in anyway like deepfaking but towards enhancement of existing features rather than replacement?

5

u/imapurplemango Jun 30 '22

Yes kind of. It is trying to predict natural features of the given face in an image and then replacing the old face with the new predicted face.

3

u/3Quondam6extanT9 Jun 30 '22

So many possibilities in that technology. Lots of films being restored and enhanced and rereleased.

1

u/robobub Jul 01 '22

If you want to see an extreme version of this in still photos, commercial software is available:

https://youtu.be/4Vw49wbP3bM

6

u/Mantipath Jun 30 '22

Wow, that really stripped the melancholy and sincerity right out of Hepburn's expressions while singing.

Works really well on the broad Bean comedy faces though.

7

u/MistaloveCoCo Jun 30 '22

It seems perfectly identical to me. Am I missing something?

4

u/meregizzardavowal Jun 30 '22

I can’t tell the difference either

1

u/sh3za Jul 01 '22

Looks brighter and less grainy to me.

1

u/MacrosInHisSleep Aug 10 '22 edited Aug 10 '22

I see what they're saying. It's easier if you stop fram by frame. You'll notice that there are definitely a few frames where the enhanced version looks a lot more serene than the other one. It's subtle enough that it's hard to specifically say what's off.

In some cases it's that the eyes seem more closed when the resolution isn't great. In other cases, it's something in the lighting. Also her cheeks seem more fleshed out in the enhanced version. In other cases still her right eyebrow is slightly straightened.

1

u/WaitformeBumblebee Jun 30 '22

I wonder how this will look compared with GFPGAN which has a tendency to turn hats into hair and bright brown eyes into blue eyes.

1

u/TorpedoMan_ Jul 06 '22

I don’t like it.. watch the movie with a Snapchat filter if your so worried about that and might as well use a funny one too. I’ll Be impressed when they can distinguish a face from a two pixel security footage.