# Local background removal assets

FlossChart runs U²-Net's small U2NETp model in the browser using ONNX Runtime Web.

## U2NETp

U²-Net is by Xuebin Qin, Zichen Zhang, Chenyang Huang, Masood Dehghan, Osmar R. Zaiane, and Martin Jagersand. The project owner confirmed that Apache 2.0 covers the published weights. The model was trained on DUTS, which is subject to separate dataset and image terms. FlossChart distributes the model weights. [U²-Net source and paper](https://github.com/xuebinqin/U-2-Net), [weight licensing statement](https://github.com/xuebinqin/U-2-Net/issues/208), [DUTS dataset](https://saliencydetection.net/duts/), [Apache 2.0 license](./U2NET-LICENSE.txt).

The ONNX file comes from rembg's release `v0.0.0`. The build checks its SHA-256 digest `309c8469258dda742793dce0ebea8e6dd393174f89934733ecc8b14c76f4ddd8`. The pinned file also matches rembg's MD5 of `8e83ca70e441ab06c318d82300c84806`. [Original ONNX file](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2netp.onnx), [rembg model configuration](https://github.com/danielgatis/rembg/blob/main/rembg/sessions/u2netp.py), [rembg MIT license](./REMBG-LICENSE.txt).

## ONNX Runtime Web

The WebAssembly file comes from the npm package `onnxruntime-web@1.31.1`, copyright Microsoft Corporation. The build checks the SHA-256 digest `4b884c203b0fa48d057be3332c65513ff85aa3c5bddd6946acc0fab7ecda001d`. [ONNX Runtime Web package](https://www.npmjs.com/package/onnxruntime-web/v/1.31.1), [Microsoft MIT license](./ORT-LICENSE.txt), [ONNX Runtime third-party notices](./ORT-THIRD-PARTY-NOTICES.txt).
