Real-ESRGAN general x4v3 — ONNX for the browser
ONNX export of realesr-general-x4v3 (Real-ESRGAN, ×4 general-purpose super-resolution and denoising) for running in the browser with onnxruntime-web.
Used by the free Doetra Photo Restorer to sharpen and upscale old photos.
Input / output
| Name | Shape | Range | |
|---|---|---|---|
| Input | input | [1, 3, H, W] float32, RGB | [0, 1] |
| Output | output | [1, 3, 4H, 4W] float32, RGB | [0, 1] |
Files
| File | Input | Notes |
|---|---|---|
realesr-general-x4v3.onnx | dynamic [1,3,H,W] | CPU (wasm) only — the WebGPU provider fails on dynamic shapes (buffer re-use error) |
realesr-general-x4v3-static384.onnx | fixed [1,3,384,384] → [1,3,1536,1536] | Runs on WebGPU (~5× faster than CPU). Tile large images and pad edge tiles. |
Credits & license
- Real-ESRGAN by Xintao Wang et al. — https://github.com/xinntao/Real-ESRGAN (BSD-3-Clause).
- Redistributed under the same BSD-3-Clause license.