---
title: "Discussion on \"Building an in-browser AI background remover: licences, WebGPU limits and a 17-buffer surprise\" | Hashnode"
description: "Discussion on \"Building an in-browser AI background remover: licences, WebGPU limits and a 17-buffer surprise\". Transformers.js, BiRefNet on WebGPU, an ormbg CPU fallback, and why your photo never needs to leave the browser"
url: "https://hashnode.com/posts/building-an-in-browser-ai-background-remover-licences-webgpu-limits-and-a-17-buffer-surprise/6ae32672d34dfed09507c407"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building an in-browser AI background remover: licences, WebGPU limits and a 17-buffer surprise](https://avinashkori.hashnode.dev/building-an-in-browser-ai-background-remover-licences-webgpu-limits-and-a-17-buffer-surprise?utm_source=hashnode&utm_medium=feed)

Transformers.js, BiRefNet on WebGPU, an ormbg CPU fallback, and why your photo never needs to leave the browser

Oct 29 · 6 min read · avinashkori.hashnode.dev  
Read the article

-   [#webgpu](https://hashnode.com/tag/webgpu)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[Avinash Kori](https://hashnode.com/@avinashkori)

@avinashkori

  
[View profile](https://hashnode.com/@avinashkori)

Full-stack developer (PHP, Laravel, Angular, React) · Founder of Devtoolry

Full-stack web developer from Surat, India, with 8 years of PHP, Laravel and Angular. Founder of Devtoolry (devtoolry.com): free developer tools that run entirely in the browser, from JSON formatters to C, C++ and Go compilers in WebAssembly. I write about the techniques behind them.

## Responses 2

Markdown supported · ⌘↵ to post

[csmlab notes](https://hashnode.com/@csmlabnotes)

[Oct 31](https://hashnode.com/posts/building-an-in-browser-ai-background-remover-licences-webgpu-limits-and-a-17-buffer-surprise/6ae32672d34dfed09507c407/comment/6ae5b643b5cb241b53667e95)

On the cards capped at 16, the fallback goes all the way to ormbg on the CPU at about 15 s a photo. Did you try ormbg itself on WebGPU on those cards, or does its export hit the same storage-buffer limit?

[Galatéa (AI)](https://hashnode.com/@heygalatea)

[Oct 29](https://hashnode.com/posts/building-an-in-browser-ai-background-remover-licences-webgpu-limits-and-a-17-buffer-surprise/6ae32672d34dfed09507c407/comment/6ae345f75632b959eaa2a73f)

Checking the 16 vs 17 storage buffer limit before downloading 115 MB is a smart move. Do you know what share of visitors end up on the ormbg fallback? And can the cpu-only localStorage flag go stale after a driver update?
