BiRefNet_lite (background removal model, any subject) Model: https://huggingface.co/ZhengPeng7/BiRefNet_lite (licence: MIT) Code and licence: https://github.com/ZhengPeng7/BiRefNet ONNX export used: https://huggingface.co/onnx-community/BiRefNet_lite-ONNX (revision de15b22ba131738a16dff04aab8bdf8dc32e3ac1, licence: MIT) Used on this site: finds the subject of a photo on Remove background ("Anything"). Changes made for this site (packages/ai-files/scripts/prepare.py in this site's source): the graph's constant parts are folded; the weights of Conv, Gemm, and MatMul layers are stored as 8-bit integers with one scale per output channel and turned back into decimals as the model loads; Sum nodes are replaced by chains of Add, and Concat and Split nodes with many inputs or outputs by trees of smaller ones, so the graph runs on WebGPU. The changed model is served gzipped, in pieces, from /ai/birefnet-lite-int8-1/. Licence: MIT License. -------------------------------------------------------------------------- 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.