Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Remove Watermarks Without Uploading: How We Built an In-Browser AI Editor

Description and use

ClearPix performs watermark removal entirely in the browser by downloading ONNX models and running inference on WebGPU, ensuring privacy and high performance.

Problem

Users are concerned that online watermark removers upload their photos to remote servers, risking privacy and data leakage.

Outcome

ClearPix achieves fully client‑side watermark removal with high performance (WebGPU reduces inpainting from ~3s to ~0.4s per region) and robust reliability through multi‑mirror fallback, self‑healing cache, and graceful degradation to WASM.

Workflow

  • 1. User opens ClearPix tool page in browser.
  • 2. Browser downloads ONNX model weights from Cloudflare R2 via custom domain, verifies SHA‑256, and caches them in IndexedDB.
  • 3. Browser loads ONNX Runtime Web (ort 1.30.x) via dynamic import, preferring WebGPU execution provider and falling back to WASM if necessary.
  • 4. User uploads image or video locally; it is decoded, processed by the model, and re‑encoded within the browser.
  • 5. No media bytes are sent over the network; only model weights and aggregate analytics events are transmitted.
  • 6. Status bar displays real‑time download and inference status, confirming no uploads occur.

Evidence

When we enabled the WebGPU EP (ort 1.30+), our inpainting step went from 2100–3500 ms to roughly 400 ms per region in our benchmarks, and in October 2026 the HQ LaMa path finally joined it at 0.86 s per 512×512 tile.

Source

Models live in a Cloudflare R2 bucket behind a custom domain on our zone. This was a measured decision, not a default: direct r2.dev URLs gave us 75–110 KB/s, while the same‑zone custom domain delivered 2.3 MB/s — a 20–30× difference that turns a model download from a coffee break into a pause.

Source

The only bytes that travel are the models coming down to you, and a small set of aggregate analytics events that contractually cannot contain your media.

Source

  • Record date: 2026-11-01T22:58:54.538Z