Chained Local ONNX Workers · Shared Cache Storage (5 MB Fast Pack · ~102 MB All 4)
Each stage reuses its standalone ONNX Runtime Web worker directly with zero duplicate weights.
Cached models auto-initialise on returning visits, and you can release any individual stage from memory at any time.
Stage 1 · IAT Low-Light (~1 MB · Apache-2.0)
Stage 2 · MicroDehazeNet (~4 MB · MIT)
Stage 3 · UVDoc Dewarp (~30 MB · Apache-2.0)
Stage 4 · Real-ESRGAN 4× (~67 MB · BSD-3-Clause)
Darkroom Architecture Highlights & Underlying Model Pages
Incremental Dependency Caching
planRecipeExecution() hashes each stage's upstream signature so scrubbing a stage's wet/dry blend
or toggling a downstream stage re-composites in 0 ms without re-invoking unaffected ONNX workers.
FIFO Worker Isolation & Mid-Run Release
Every reused worker runs inside FifoStageClient with coalesced loading, loading-only progress forwarding,
strict <= 1 in-flight ops, orphan ImageBitmap cleanup, and decoupled disposeSeq.
Real-Time Optics & Multi-Format Export
Dual Rec.709 RGB/luminance histograms and discrete Laplacian sharpness deltas quantify every stage live, while
OffscreenCanvas / toBlob reports real compressed PNG, WebP, and AVIF byte sizes before download.