RealPLKSR for ONNX Runtime
ONNX exports of the RealPLKSR "MSSIM pretrain" upscalers, 2x and 4x, as used by the Upscale tool of Gumka on Linux. These checkpoints were trained without GAN fine-tuning: they sharpen what is in the picture rather than inventing detail.
| File | Scale | Input | Output |
|---|---|---|---|
model_x2.onnx | 2x | input [1, 3, 512, 512] float32 | output [1, 3, 1024, 1024] float32 |
model_x4.onnx | 4x | input [1, 3, 256, 256] float32 | output [1, 3, 1024, 1024] float32 |
- Values are planar RGB from 0 to 1, in and out, in float32, so 16-bit pictures keep their precision.
- The tile size is fixed. Larger pictures are run in tiles with 16 px of context on each side, writing only each tile's core.
- Gumka runs them on ONNX Runtime's CPU provider: about 1.8 s per 256 px tile at 4x on a Ryzen 7 8845HS.
- The Core ML versions, for macOS, are gumka/realplksr-coreml.
Source and license
- Architecture: PLKSR, "Partial Large Kernel CNNs for Efficient Super-Resolution", Dongheon Lee et al., 2024, https://arxiv.org/abs/2404.11848, https://github.com/dslisleedh/PLKSR (MIT).
- RealPLKSR and these weights: neosr-project, released under the same MIT license in https://github.com/dslisleedh/PLKSR/issues/4.
- ONNX export: darktable's, published at darktable-org/upscale-realplksr-onnx with the original checkpoints; the conversion script is in darktable-ai.
- This repository holds
onnx/model_x2.onnxandonnx/model_x4.onnxof darktable-org/upscale-realplksr-onnx at revision0bb636eeeed5, unchanged; Gumka'smodels.tomlpins each file's size and SHA-256. License: MIT, seeLICENSE.