Skip to content
ModelListedExternal
Download

Realesr General X4v3 Onnx

Clean ONNX export of realesr-general-x4v3 (SRVGGNetCompact, 4× general image super-resolution) from the official Real-ESRGAN weights, re-hosted for AllPrivate — where every model runs in the visitor's browser and...

KindOtherVersionRealesr general x4v3Bgrade

Model source

Kind
Other
File size
4.64 MB
Version
vRealesr general x4v3
Updated
Oct 9, 2026
Source
Hugging Face

Source description

realesr-general-x4v3 — ONNX export (NCHW, opset 17)

Clean ONNX export of realesr-general-x4v3 (SRVGGNetCompact, 4× general image super-resolution) from the official Real-ESRGAN weights, re-hosted for AllPrivate — where every model runs in the visitor's browser and nothing is uploaded.

Provenance

  • Source weights: realesr-general-x4v3.pth from the official Real-ESRGAN v0.2.5.0 release
    • sha256: 8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292
  • Exported with torch.onnx.export (PyTorch 2.8.0, TorchScript exporter), opset 17, fp32, constant folding on — see export_realesr.py in this repo for the exact reproducible script
  • I/O: input [1, 3, height, width] (NCHW, RGB, float32 in [0,1]) → output [1, 3, 4*height, 4*width]; height/width are dynamic
  • Graph ops: Add, Constant, Conv, DepthToSpace, PRelu, Resize — no Clip, no layout transposes, so it runs on both the wasm and WebGPU execution providers of ONNX Runtime Web
  • Validated against the PyTorch reference: max abs deviation ≤ 5.5e-6 across 64×64, 256×256 and 100×37 inputs

Unlike the original network's common community exports, the output is not clipped to [0,1] inside the graph; clamp at the consumer (u8 conversion clamps naturally).

License

BSD 3-Clause, inherited from Real-ESRGAN (© Xintao Wang). This repo only re-packages the officially released weights in ONNX form.

Sources

1 source
Hugging FacePrimaryVersion c6a971706797c7502945a2b4c4274fce4900d4ab
huggingface.co/CoderViking/realesr-general-x4v3-onnx/tree/c6a971706797c7502945a2b4c4274fce4900d4ab

Verified Oct 9

Model artifacts

1 artifact

realesr-general-x4v3.onnx

onnx · 4.64 MB · SHA-256 1940a93ee082…f112 · Hugging Face

Download file

Source excerpts

2 excerpts

--- license: bsd-3-clause library_name: onnx tags: - onnx - super-resolution - real-esrgan - image-to-image --- # realesr-general-x4v3 — ONNX export (NCHW, opset 17) Clean ONNX export of **realesr-general-x4v3** (SRVGGNetCompact, 4× general image super-resolution) from the official [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) weights, re-hosted for [AllPrivate](https://allprivate.app) — where every model runs in the visitor's browser and nothing is uploaded. ## Provenance - Source weights: [`realesr-general-x4v3.pth`](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth) from the official Real-ESRGAN v0.2.5.0 release - sha256: `8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292` - Exported with `torch.onnx.export` (PyTorch 2.8.0, TorchScript exporter), opset 17, fp32, constant folding on — see [`export_realesr.py`](./export_realesr.py) in this repo for the exact reproducible script - I/O: `input` `[1, 3, height, width]` (NCHW, RGB, float32 in [0,1]) → `output` `[1, 3, 4*height, 4*width]`; height/width are dynamic - Graph ops: `Add, Constant, Conv, DepthToSpace, PRelu, Resize` — no `Clip`, no layout transposes, so it runs on both the wasm and WebGPU execution providers of ONNX Runtime Web - Validated against the PyTorch reference: max abs deviation ≤ 5.5e-6 across 64×64, 256×256 and 100×37 inputs Unlike the original network's common community exports, the output is **not** clipped to [0,1] inside the graph; clamp at the consumer (u8 conversion clamps naturally). ## License BSD 3-Clause, inherited from [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE) (© Xintao Wang). This repo only re-packages the officially released weights in ONNX form.

Source context: 0 downloads · 0 likes · Pipeline image-to-image · Library onnx · Repo CoderViking/realesr-general-x4v3-onnx