RealPLKSR (ONNX)

ONNX conversion of RealPLKSR โ€“ the Real-world variant of Partial Large Kernel CNNs for Super-Resolution. Includes 2x and 4x scale factors, MSSIM-pretrain stage (no GAN finetune).

Packaged for use with darktable's neural restore module via the darktable-ai pipeline.

Files

Path Purpose
onnx/model_x2.onnx 2x upscaler, static input 512ร—512 โ†’ output 1024ร—1024
onnx/model_x4.onnx 4x upscaler, static input 256ร—256 โ†’ output 1024ร—1024
checkpoints/2x_realplksr_mssim_pretrain.pth Original PyTorch weights for the x2 model
checkpoints/4x_realplksr_mssim_pretrain.pth Original PyTorch weights for the x4 model
config.json HF model metadata

The checkpoints/ directory holds the original .pth files used to produce the ONNX exports. They are kept here so the conversion can be reproduced even if the upstream Google Drive links stop being reachable.

Source

Usage

Inference inputs are RGB images in the [0, 1] range. The graphs have static input dimensions, so callers must tile at exactly the declared size. See the darktable-ai conversion script for the full export configuration, and the demo script for an ONNX Runtime example that handles tiling, mirror-padding, and overlap stitching.

License

Notes

  • Training dataset is not documented by the weights author; assumed to be DF2K (DIV2K + Flickr2K) per neosr common practice. Flickr2K does not carry an explicit open-source license.
  • MSSIM-pretrain checkpoints only (no GAN finetune) โ€“ conservative output, no hallucinated detail.
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including darktable-org/Upscale-RealPLKSR-ONNX

Paper for darktable-org/Upscale-RealPLKSR-ONNX