Neural network super resolution that adds realistic detail
Try AI Upscaler →The upscaler uses Swin2SR, a transformer-based neural network for image super resolution. Ordinary upscaling interpolates between existing pixels, so an enlarged image gets softer the bigger it gets. Swin2SR instead predicts what the extra pixels should look like, based on patterns learned from large sets of real photographs.
The model runs entirely in your browser through transformers.js, on ONNX Runtime's WebAssembly backend. The first run downloads the model (about 7MB), which your browser then caches, so later runs skip the download.
The neural network generates plausible detail rather than just interpolating pixels.
Enlarges images 4x in each dimension, 16x the pixel count.
The model runs in your browser. Images never leave your device.
The model downloads once, about 7MB, and is cached for later runs.
This site has two upscalers, and they suit different jobs. AI Resize predicts new detail with a neural network. It is the right choice when the source is small and you want the result to look like a real photo, accepting that the added detail is invented rather than recovered. The standard Resize tool uses Lanczos interpolation instead: it is much faster, works on any device, and never invents anything, which makes it the safer choice when accuracy matters more than added detail.
The model is Xenova/swin2SR-realworld-sr-x4-64-bsrgan-psnr, a Swin2SR variant trained for real-world photos, loaded with Hugging Face's transformers.js library. Inference runs on ONNX Runtime's WebAssembly backend, so it works in any modern browser without needing a GPU. The download is about 7MB and the browser caches it after the first run.
How long a run takes depends on your device and the size of the source image. Small images finish in seconds; larger ones can take minutes, and very large ones may run out of memory on limited devices. The model quadruples each dimension, so the work grows quickly with input size. Starting from a smaller source is the most reliable way to keep processing time reasonable.