Models About & Code

Standalone App & PWA

Install 4× Upscale, Deblur & Rescue Darkroom as an offline desktop or mobile PWA with OS image/* file_handlers support and zero camera or microphone permissions.

Open upscale.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so upscale.webai.show caches its own copy of the ONNX weights (6.5 MB primary 4× APISR, plus optional Real-ESRGAN, NAFNet, and SCUNet companions). Staying on webai.show shares cached companion weights with their model pages.

128×96 → 512×384 (4× exact) · Split 50% JPEG Blocky preview · Standby

4x Upscale Darkroom viewport ready to upscale, deblur, and denoise images locally in CPU WebAssembly.

50%

Drop or paste any image anywhere · Hover or drag canvas to aim the 4× split-wipe loupe.

Resolution 128×96 → 512×384 Target 4× output
Sharpness — Laplacian variance
PSNR Pending vs clean 4× reference
SSIM Pending 8×8 structural index

Ready to run 4× APISR GRL-GAN (6.5 MB fp32, GPL-3.0) locally in CPU WASM. Pick a degradation preset or drop a photo, then click Download & Run.

Primary weights: Xenova/4x_APISR_GRL_GAN_generator-onnx (GPL-3.0, Kiteretsu77/APISR) · Companions: Real-ESRGAN (BSD-3-Clause), NAFNet (MIT), SCUNet (Apache-2.0).

Degradation Simulator

Before-stage harness

Downsamples 4× with heavy 8×8 block quantization and chroma compression.

65%

2×1 = 2 tiles · 8 px overlap

Rescue Pipeline Chain

CPU WASM · Off-thread
Step 1 · Pre-Stage Restoration
Step 2 · 4× Super-Resolution Engine

4× APISR: 6.5 MB fp32 GRL-GAN (GPL-3.0) — ultra-fast crisp lines, cel/graphic edges & deblocking.

Pipeline Telemetry

0 uploads · Cache backed
Pre-Stage Bypassed
4× Upscaler Not run
Tile Stitch 2 planned (96 px)
Integrity 0 NaN · CPU WASM

Local AI Engine

Start fast with 4× APISR GRL-GAN (6.5 MB fp32, GPL-3.0, shared Transformers.js 3.7.5 CPU WASM) from the primary Run button above, or manage all 4 restoration workers together in shared Cache Storage below.

Primary · 4× APISR GRL-GAN (6.5 MB fp32 · GPL-3.0)

Xenova/4x_APISR_GRL_GAN_generator-onnx · model_type: swin2sr · shared Transformers.js 3.7.5 CPU WASM

Companion · Real-ESRGAN x4plus (67 MB fp32 · BSD-3-Clause)

SceneWorks/real-esrgan-onnx · onnxruntime-web 1.21.0 · shared companion worker

Pre-Stage · NAFNet Motion Deblur (92 MB fp32 · MIT)

opencv/deblurring_nafnet · onnxruntime-web 1.21.0 · shared companion worker

Pre-Stage · SCUNet Blind Denoise (75 MB fp32 · Apache-2.0)

Heliosoph/scunet-onnx · onnxruntime-web 1.21.0 · external-data sidecar · shared worker

How 4× Upscale, Deblur & Rescue Darkroom Works

Chain real on-device deblurring and blind denoising into tiled 4× neural super-resolution strictly inside off-main-thread CPU WebAssembly workers, compare results under a 4× magnifying split-wipe loupe, and inspect honest Laplacian sharpness, PSNR, and 8×8 SSIM telemetry against a naive bicubic baseline.

GPL-3.0 Primary Model License & Attribution Notice

The primary 4× upscaler weights Xenova/4x_APISR_GRL_GAN_generator-onnx (rev 5e55535f, onnx/model.onnx 6.49 MB fp32, derived from Kiteretsu77/APISR, CVPR 2024) are licensed under GNU GPL-3.0. Note on runtime quantization: live headless Chrome Stage 0 probing on shared Transformers.js 3.7.5 CPU WASM verified that int8/q4f16 exports require ConvInteger(10) absent from the 3.7.5 WASM backend, whereas fp32 (6.49 MB, matching the official model card) executes 2.2× faster with 0 NaN and 0 console errors. Audited companion models carry their original permissive licenses: SceneWorks/real-esrgan-onnx (BSD-3-Clause), opencv/deblurring_nafnet (MIT), and Heliosoph/scunet-onnx (Apache-2.0).

1. 4× APISR GRL-GAN (6.5 MB)

Xenova/4x_APISR_GRL_GAN_generator-onnx (swin2sr, GPL-3.0) runs tiled with 8 px overlap and exact pad_size=4 boundary cropping, delivering razor-sharp line-art and heavy de-blocking in ~0.8–1.5 s on CPU WASM.

2. Real-ESRGAN x4plus (67 MB)

SceneWorks/real-esrgan-onnx (RRDBNet, BSD-3-Clause) reconstructs photographic grain, masonry, and fur texture — run A/B mode to scrub directly between APISR's graphic crispness and Real-ESRGAN's photographic realism.

3. NAFNet Motion Deblur (92 MB)

opencv/deblurring_nafnet (MIT, 512×512 GoPro motion-blur network) restores smeared camera-shake edges before 4× super-resolution so upscalers sharpen structure instead of blur trails.

4. SCUNet Blind Denoise (75 MB)

Heliosoph/scunet-onnx (Apache-2.0, Swin-Conv-UNet PSNR) strips high-ISO luminance/chroma sensor grain and compression mosquitoes prior to 4× upscaling.

Show the code — ensureLoaded() shared Transformers.js 3.7.5 fp32 APISR loader
Show the code — runTiledUpscale() tiled 4× super-resolution, pad_size=4 crop & live metrics
Show the code — planTiles() overlapping WASM-safe 4× tile grid planner
Show the code — simulateJpegBlockyRgba() deterministic 8×8 JPEG degradation simulator
Show the code — computeSsimRgba() windowed 8×8 luminance SSIM quality metric
Show the code — StageWorkerClient FIFO lifecycle, tile progress streaming & cancel/dispose

Export 4× Rescued Image & Benchmark

Save lossless PNG, WebP, or full JSON quality metrics strictly from this device.

Run 4× rescue to inspect export metadata.