This image may not be a representative test case. It looks like it has heavy compression (including posterization), and overall poor quality. "Quality" meaning things like focus, contrast, and low noise- separate from resolution.
Another point is that by default, we don't apply special processing to faces. However, enabling the face enhancement option will greatly improve the quality of photo images.
For images involving faces, selecting the "Enhance Portrait" option will yield better results. You can toggle this option after generating the image. Your image will look much better with this option selected:
https://file.mejorarimagen.org/4kU68cBDKF-giphy-face-new.png
The original contains artifacts that tend to arise after compression, as the other poster notes (posterization and such). I wonder if you'll get better results if you make the original go through a gaussian to smooth those artifacts, and then feed it to the enhancer.
There’s no reason that you wouldn’t be able to go directly from compression artefacts to a decent output with a correctly trained network. It’s slightly erroneous to call them artefacts as they do hold information, just in a not readily reversible way with conventional upscaling techniques.
Yes. Well, kinda. You can maintain the resolution, but you'll be losing information regardless.
But that's what's needed here. The current image contains a lot of compression artifacts, which are extraneous information, and that's what the upscaler seems to want to enhance. Wipe that information out and you're left with the rough structure, which is what we actually want enhanced.
AI is gonna introduce new information to input new resolution from nowhere either which way, so we're just priming and massaging and optimizing our input so as to remove any obstructions that might trip up the AI enhancer. But yes you're right, ideally the enhancer should know how to take into account compression artifacts but this one doesn't.
* original: https://upcdn.io/12a1z2u/image/uploads/2024/07/18/4kU68cBDKF...
* "10K" enhanced: https://replicate.delivery/czjl/gFpKKIlEKKZrL1lfqxXlpQrOBbe9...