# Third-party components

## ONNX Runtime Web 1.23.2

Copyright (c) Microsoft Corporation. All rights reserved.

License: MIT. Distributed runtime files in `../vendor/` are unmodified files from
the `onnxruntime-web@1.23.2` npm package.

- Project: https://github.com/microsoft/onnxruntime
- Release source: https://github.com/microsoft/onnxruntime/tree/v1.23.2
- License text: [MIT](../vendor/LICENSE.txt)
- Included dependency notices: [ThirdPartyNotices](../vendor/ThirdPartyNotices.txt)

## LaMa FP32 ONNX model

Model provider: Carve / Carve Photos. Original LaMa project: advimman/lama.
The provider labels this model Apache-2.0.

- Model card: https://huggingface.co/Carve/LaMa-ONNX
- Original project: https://github.com/advimman/lama
- ONNX export implementation: https://github.com/Carve-Photos/lama
- Revision: `c3c0c9e468934d62e79c329e35d82dd09ff8c444`
- File: `lama_fp32.onnx` (208,044,816 bytes)
- SHA256: `1faef5301d78db7dda502fe59966957ec4b79dd64e16f03ed96913c7a4eb68d6`
- Download: https://huggingface.co/Carve/LaMa-ONNX/resolve/c3c0c9e468934d62e79c329e35d82dd09ff8c444/lama_fp32.onnx
- License text: [Apache License 2.0](Apache-2.0.txt)

The model is downloaded unchanged on first use, checked against the SHA-256 above
and size before it is used, and may be stored in the browser cache. The static distribution does not include the LaMa model weights. User photos
are processed locally; model downloads do not upload the user's image.

The surrounding application performs crop selection, model input conversion,
and inward boundary blending. These are application operations and do not modify
the distributed ONNX model or ONNX Runtime files.

## Real-ESRGAN general x4v3

The included `../models/realesr-general-x4v3.onnx` is reused unchanged from the existing local upscaler. Original project: https://github.com/xinntao/Real-ESRGAN . License: BSD 3-Clause, [full text](Real-ESRGAN-BSD-3-Clause.txt).

- Size: 4,871,181 bytes
- SHA256: `09b757accd747d7e423c1d352b3e8f23e77cc5742d04bae958d4eb8082b76fa4`
- Native inference: 4x; 2x uses area reduction of each AI tile.
- Conversion provenance of the existing ONNX file has not been independently verified.

The surrounding application tiles the original-resolution input with 40 pixels of context on each side. Only tile centers are retained, and original alpha is interpolated independently. No remote image processing service is used.


## ISNet general-use background segmentation (weight-only INT8 QDQ)

- Quantization provider: xrds; base ONNX conversion: imgly GmbH.
- Model: https://huggingface.co/xrds/isnet-general-onnx-int8
- Base model: https://huggingface.co/imgly/isnet-general-onnx
- Revision: 71eff2372ec9c8edbc6ca637ded591423d23b65a
- File: onnx/model_quantized.onnx, 44,229,662 bytes, downloaded unchanged on first use.
- SHA256: 3b21a6706dc8d6e4ba9f5b31ebc6940f6c785b58862e27bb25daa9dd4424b87f
- Provider license: [MIT](background-ISNet-MIT.txt).
- Original DIS / IS-Net project: https://github.com/xuebinqin/DIS
- Original project license: [Apache 2.0](background-DIS-Apache-2.0.txt).

The app uses dynamic 512 x 512 model input to reduce browser memory. Published
preprocessing is RGB minus 128, divided by 256. Output alpha is bilinearly
resized to the original image and multiplied by existing transparency.
Photos are processed on the device; the remote request downloads model weights.
The model is not included in the static distribution.


## Anime Segmentation (SkyTNT), ONNX Community uint8 quantization

- Original project: https://github.com/SkyTNT/anime-segmentation
- Original model: https://huggingface.co/skytnt/anime-seg
- Quantized ONNX: https://huggingface.co/onnx-community/anime-seg-ONNX
- Quantized revision: 25f233dc9f60e116dc79a5ba7e9575585388a36f
- File: onnx/model_quantized.onnx, 44,182,618 bytes.
- SHA256: a7f34dc704cdf72e38205d16a0e949a40b93203ca2d941c6fd7d149b2d28c3be
- Original license: [Apache 2.0](background-Anime-SkyTNT-Apache-2.0.txt). The ONNX Community repository supplies no additional model card or licensing statement.

Original 1024 x 1024 model input is preserved. RGB is divided by 255, the
aspect ratio is retained and the resized input is centered in zero padding,
matching the author's inference.py. The output mask is cropped to the unpadded
area, bilinearly resized to the original image and multiplied by source alpha.
The quantized ONNX file is downloaded unchanged, hash-verified, and processed
on the user's device. Model conversion and quantization were supplied by ONNX
Community, not performed or independently reproduced by this app's authors.

## 再配布条件の検収状況（2026-10-25 時点）

- 確認できたこと：SkyTNT/anime-segmentation リポジトリと skytnt/anime-seg のモデルカードは、どちらも Apache-2.0 と表示している。
- 確認できていないこと：学習データ（AniSeg 等）の利用条件。ONNX Community の量子化版（onnx-community/anime-seg-ONNX）にはモデルカードがなく、独自のライセンス表記がない。
- 確認できていないこと：ISNet 汎用モデルの学習データ（DIS5K 等）の利用条件。xrds の量子化版は MIT と表示しているが、元の imgly 版と DIS は Apache-2.0 で、二次配布元の表示と一致しない。
- Real-ESRGAN の ONNX 変換経緯は独立検証していない。
- 上記はモデルの重みを本アプリが再配布せず、利用者の端末が配布元から直接取得する構成のため、このアプリの配布物には含まれない。ただし商用利用や再配布を行う場合は、各配布元・学習データの条件を別途確認すること。
