CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

Produce images without upscaling (I need to keep original resolution) if its smaller FullHD?

Open suphamster opened this issue 2 years ago • 6 comments

In web version if I set Rescaling_Factor to 1.99 then I'm getting image almost the same resolution (1% smaller) as original. In cmd if I set "--upscale 1" images becames about twice larger (I mean its resolution) and smaller values it doesn't allows.

suphamster avatar Mar 01 '23 17:03 suphamster

All seems fine is using CodeFormer with FullHD images so closing. Test ones was smaller that why it was upsampled.

suphamster avatar Mar 01 '23 19:03 suphamster

I've reopened this because I don't want any upscaling at all if "--upscale 1" set not just for big resolutions.

suphamster avatar Mar 02 '23 10:03 suphamster

Using replicate https://replicate.com/sczhou/codeformer

For portrait images (height larger than width), if the image width is smaller than 512px the output width is 512 x upscale, so small images are resized to 512px in width, then upscaled: 500x686 -> upscale 1 -> 512x702 500x686 -> upscale 2 -> 1024x1404

The same for landscape images (width larger than height), if the image height is smaller than 512px the output height is 512 x upscale, so small images are resized to 512px in height, then upscaled: 600x511 -> upscale 1 -> 601x512 600x511 -> upscale 2 -> 1202x1024

sebaro avatar Apr 05 '23 10:04 sebaro

Uploading Snapchat-18765837.jpg…

brohiy avatar Dec 22 '23 12:12 brohiy

Ee

brohiy avatar Dec 22 '23 12:12 brohiy

Hhbdhe

brohiy avatar Dec 22 '23 12:12 brohiy