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

Add resize output option

Open TheGameratorT opened this issue 1 year ago • 2 comments

Many times I had the case where I just wanted to remove noise on an image without actually resizing it.

Saving images to the disk in very large sizes is not very efficient and it wasted write cycles on my SSD.

I needed to run the model at x2 scale but still save it at x1.

This pull request adds a -r resize option that before writing the output file to the disk, resizes the output in memory if the dimensions of the output don't match what the user specified, thus saving faster and saving disk space.

TheGameratorT avatar Nov 20 '23 20:11 TheGameratorT

I would also find this function very useful, but couldn't it also be realized via an "-S 1"?

Ohrwerk avatar Apr 22 '24 12:04 Ohrwerk

I would also find this function very useful, but couldn't it also be realized via an "-S 1"?

The -s argument does not allow 1 to be specified.

TheGameratorT avatar Apr 22 '24 13:04 TheGameratorT