Which super resolution show? RealESRGAN and SwinIR image quality and speed comparison

MLBoy
3 min readJan 2, 2024

--

Which one is better?

A real super-resolution model that scales up images and makes them clearer.
It’s difficult to choose which super-resolution model is better.
I compared the following two that are relatively popular.

RealESRGAN

SwinIR

Both are good models though.

comparison

Comparison of RealESRGAN_x4plus and SwinIR-M_x4_GAN.

64×64 → 256×256

Input 64
RealESRGAN: 0.04 seconds
SwinIR: 0.11 seconds

128×128 → 512×512

input 128
RealESRGAN 0.08 seconds
SwinIR 0.31 seconds

256×256 → 1024×1024

input
RealESRGAN 0.35 seconds
SwinIR 1.28 seconds

512×512 → 2048×2048

input
RealESRGAN 1.44 seconds
SwinIR 6.28 seconds

result

In terms of speed, RealESRGAN is 3–5 times faster than SwinIR
, and the image quality is difficult to judge, but I thought that SwinIR tends to make images sharper (for better or for worse).

execution script

RealESRGAN

python inference_realesrgan.py -n RealESRGAN_x4plus -i input --outscale 4

SwinIR

python main_test_swinir.py --task real_sr --scale 4 --model_path model_zoo/

🐣

I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com

I am creating applications using machine learning and AR technology.

I send machine learning / AR related information.

GitHub

Twitter
Medium

--

--

MLBoy
MLBoy

Responses (1)