LocalBG

Licenses

LocalBG may be offered commercially later, so the segmentation weights and the runtime are both under permissive licenses. This page records what was checked.

PieceNameLicenseSource
Weights used in the browserBiRefNet-lite 512 FP16MITSource
Model authorsZhengPeng7/BiRefNet + BiRefNet_liteMITSource
Inference runtimeonnxruntime-webMITSource
ZIP packagingfflateMITSource
Site stackNext.js, React, next-intl, Tailwind, shadcn/uiMITSource

Why this model

BiRefNet (Zheng Peng, 2024) is released under the MIT license, and the Hugging Face card for ZhengPeng7/BiRefNet_lite is also marked MIT. The file this site runs is studioludens/birefnet-lite-512, a 512×512 ONNX re-export that the model card licenses as MIT, including commercial use and serving the weights to browsers. Full-size 1024 BiRefNet exports exhaust the onnxruntime-web memory heap. 512 is the quality/size trade-off that actually runs on a laptop and a phone-class GPU.

Not used: @imgly/background-removal (AGPL-3.0, a problem for a web app that may be monetized) and BRIA RMBG-1.4 / RMBG-2.0 weights (non-commercial). U²-Net and IS-Net are Apache-2.0 and were the fallback if this export could not run; they are not bundled.

Pinned file: model_fp16.onnx, 93.9 MB, Hugging Face revision 962e6796. After the first download it is stored in Cache Storage under localbg-models-v1.

MIT

MIT License

Copyright (c) 2024 ZhengPeng
Copyright (c) 2026 Studio Ludens V.O.F.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

ONNX Runtime is licensed under the MIT License by Microsoft and contributors. https://github.com/microsoft/onnxruntime/blob/main/LICENSE