Dev Tools · 2h ago
Building a Client-Side Background Remover: Lessons in AI Licensing and Model Choice
A developer built a 100% client-side background removal tool using Transformers.js and ONNX Runtime Web, avoiding server uploads. The project faced an AGPL licensing trap, requiring a switch to an Apache-2.0 model, and a transformer model that caused memory crashes, replaced by a lighter CNN. A post-processing step fixed residual color halos from soft alpha mattes.
Meridian48 take
The article highlights practical pitfalls in browser-based AI, from license compliance to model architecture trade-offs, that are often glossed over in demos.
Read the full reporting
Removing a Photo's Background in the Browser, With No Upload: AI Licenses, ONNX Models, and a Frozen Tab →
DEV Community
browser-aionnx-runtime