Real-ESRGAN-ncnn-vulkan icon indicating copy to clipboard operation
Real-ESRGAN-ncnn-vulkan copied to clipboard

Images come out wrong when using -s 2

Open Ktr4ks opened this issue 1 year ago • 6 comments

While using the default scale of 4x, the output images come out correctly, but while using 2x something weird is happening. Have a look:

Input Tom

Output 2x outputtom2x

Output 4x outputtom2x

Ktr4ks avatar Jul 15 '22 15:07 Ktr4ks

me too

x1 (orig)
x1

x2
x2

x3
x3

x4
x4

NaokiSato102 avatar Jul 18 '22 06:07 NaokiSato102

I would like to have 1x increase (to do noise reduction only) while this is being addressed.

NaokiSato102 avatar Jul 18 '22 06:07 NaokiSato102

when i use realesrgan-x4plus-anime with -s 8 it also gets messy!

ghost avatar Dec 09 '22 16:12 ghost

Can confirm this is still happening

The -s argument only works for the default realesr-animevideov3 model and not for anything other that is provided

all other models are stuck at 4x scale

Steps to recreate:

realesrgan-ncnn-vulkan.exe -i input.jpg -o output.png -n realesrgan-x4plus -s 2

or

realesrgan-ncnn-vulkan.exe -i input.jpg -o output.png -n realesrgan-x4plus-anime -s 2

Output (for both): output

AlphaHasher avatar Dec 31 '22 00:12 AlphaHasher

I narrowed this issue down to being an issue. It is because the model being used for is a 4x model which means that it can only be used for 4x scale

AlphaHasher avatar Dec 31 '22 02:12 AlphaHasher

I also created a duplicate issue https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan/issues/39

The fix for me was to use -f JPG

zetyquickly avatar Jan 31 '23 18:01 zetyquickly