Real-ESRGAN x2plus / x4plus — ONNX export
ONNX re-exports of Real-ESRGAN (xinntao — BSD-3-Clause): 2× and 4× image super-resolution. All credit for the original weights goes to xinntao.
Exported for QtMeshEditor
(issue #405), powering qtmesh material --texture <low> --upscale {2|4}, the
Material Editor's "Upscale 2× / 4×" buttons, the upscale_texture MCP tool,
and the optional texture-upscale stage of the image-to-3D pipeline — local
inference via ONNX Runtime.
The files QtMeshEditor downloads at runtime live in the shared
fernandotonon/QtMeshEditor-modelsrepo (top level). This repo is the standalone model card + mirror.
Files & I/O
| file | scale |
|---|---|
RealESRGAN_x2plus.onnx |
2× |
RealESRGAN_x4plus.onnx |
4× |
1×3×H×W float NCHW in [0,1] → 1×3×(s·H)×(s·W). Dynamic H/W — tile
large inputs with overlapping tiles and composite in OUTPUT space with a
feathered seam blend (detect the scale factor from the output/input ratio at
runtime rather than hardcoding it).
Reproducing
scripts/export-realesrgan-onnx.py in the QtMeshEditor repo (one-time,
offline).
License
BSD-3-Clause (the upstream repo LICENSE has no code/weights carve-out and OpenModelDB classifies the released weights as BSD-3). Credit: xinntao.