← all repositories
nihui/realsr-ncnn-vulkan

Upscaling without the CUDA tax

A portable, GPU-agnostic super-resolution tool that runs on whatever graphics hardware you already have.

realsr-ncnn-vulkan
Velocity · 7d
+0.6
★ / day
Trend
steady
star history

What it does

This is a command-line image upscaler based on RealSR, a CVPR 2020-winning approach that handles real-world noise and blur rather than idealized lab conditions. Feed it a JPEG or PNG, get back a 4× larger version. It runs on Windows, Linux, and macOS with Intel, AMD, or Nvidia GPUs—no CUDA installation, no Python environment, no fuss.

The interesting bit

The portability is the trick. It uses Tencent’s ncnn inference engine and Vulkan for GPU compute, which means it sidesteps the usual Nvidia-centric toolchain entirely. The author also maintains similar wrappers for waifu2x and SRMD, suggesting a small empire of “just make it run anywhere” ports.

Key highlights

  • Single binary with models bundled; unzip and run
  • Multi-GPU support via -g flags and per-GPU tile sizes
  • TTA mode (-x) for the quality-obsessed at the cost of speed
  • Tunable pipeline threading: separate controls for decode, process, and encode stages
  • Outputs PNG or WebP, both lossless

Caveats

  • Only 4× upscaling is supported; no 2× or other scales
  • The README’s sample comparison shows RealSR beating Lanczos and SRMD, but that’s the author’s own test image—grain of salt advised
  • Driver crashes are common enough that the README dedicates a paragraph to “upgrade your GPU driver” with vendor links

Verdict

Worth a look if you want quality upscaling without installing PyTorch or buying an Nvidia card. Skip it if you need flexible scaling ratios or heavy batch automation beyond directory-mode processing.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.