---
license: bsd-3-clause
library_name: onnx
pipeline_tag: image-to-image
tags:
  - super-resolution
  - real-esrgan
  - onnx
  - onnxruntime-web
---

# 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](https://onnxruntime.ai/docs/tutorials/web/).

Used by the free [Doetra Photo Restorer](https://doetra.com) 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.
