BiRefNet (AI model)
The background removal model is BiRefNet_lite by Peng Zheng, Dehong Gao, Deng-Ping Fan, Li Liu, Jorma Laaksonen, Wanli Ouyang and Nicu Sebe, described in "Bilateral Reference for High-Resolution Dichotomous Image Segmentation" (CAAI Artificial Intelligence Research, 2024). Source: github.com/ZhengPeng7/BiRefNet. We converted the published weights to run in the browser (ONNX format, with 8-bit weight storage and a memory-efficient formulation of its deformable convolutions); the model itself is unchanged.
MIT License
Copyright (c) 2024 ZhengPeng
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 Web (runs the model)
ONNX Runtime Web 1.30.0 by Microsoft, used unmodified. Source: github.com/microsoft/onnxruntime.
MIT License
Copyright (c) Microsoft Corporation
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.
libheif and libheif-js (opening iPhone HEIC photos)
When a browser cannot open a HEIC photo by itself, the page loads libheif 1.23 (copyright Dirk Farin and the libheif contributors, source: github.com/strukturag/libheif) through libheif-js by Kiril Vatev (source: github.com/catdad-experiments/libheif-js), compiled to WebAssembly. Both are distributed under the GNU Lesser General Public License, version 3 (LGPL-3.0), and are served unmodified as a separate file, /assets/heic/1.23.2/libheif-bundle.mjs, which you may replace with your own build. The full license text is at gnu.org/licenses/lgpl-3.0.html, and the corresponding source code is available from the projects above or from us on request at hello@backgroundremoverpng.com.