BlueGit

ict rusty-teams

Files

rusty-teams / crates / calling / assets / MODNET_LICENSE.md

MODNET_LICENSE.md

MODNET_LICENSE.md 1.0 KiB Download Raw

modnet_webcam_portrait_matting.onnx

ItemValue
ModelMODNet webcam portrait matting (Ke et al., "MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition", AAAI 2022)
AuthorZhanghan Ke and contributors, https://github.com/ZHKKKe/MODNet
LicenseApache License 2.0, https://www.apache.org/licenses/LICENSE-2.0 (MODNet README: "The code, models, and demos in this repository ... are released under the Apache License 2.0")
Weightspretrained/modnet_webcam_portrait_matting.ckpt, mirrored at https://huggingface.co/DavG25/modnet-pretrained-models (Apache-2.0)
Inputinput float32 [1, 3, height, width], RGB, (pixel - 127.5) / 127.5, height and width multiples of 32
Outputmatte float32 [1, 1, height, width], alpha 0..1, 1 = person
Changesexported to ONNX opset 17 with MODNet.forward(image, inference=True)[2] and dynamic height and width; weights stored as float16 with a Cast to float32 in front of each (ONNX Runtime folds the casts at load)
Source
1# modnet_webcam_portrait_matting.onnx
2
3| Item | Value |
4|---|---|
5| Model | MODNet webcam portrait matting (Ke et al., "MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition", AAAI 2022) |
6| Author | Zhanghan Ke and contributors, https://github.com/ZHKKKe/MODNet |
7| License | Apache License 2.0, https://www.apache.org/licenses/LICENSE-2.0 (MODNet README: "The code, models, and demos in this repository ... are released under the Apache License 2.0") |
8| Weights | `pretrained/modnet_webcam_portrait_matting.ckpt`, mirrored at https://huggingface.co/DavG25/modnet-pretrained-models (Apache-2.0) |
9| Input | `input` float32 [1, 3, height, width], RGB, (pixel - 127.5) / 127.5, height and width multiples of 32 |
10| Output | `matte` float32 [1, 1, height, width], alpha 0..1, 1 = person |
11| Changes | exported to ONNX opset 17 with `MODNet.forward(image, inference=True)[2]` and dynamic height and width; weights stored as float16 with a Cast to float32 in front of each (ONNX Runtime folds the casts at load) |