{ "schema_version": 1, "model": { "id": "modnet", "version": "1.0.0", "display_name": "MODNet", "task": "image-matting", "description": "Trimap-free portrait matting for still images and video frames" }, "license": { "spdx": "Apache-2.0", "redistribution": "allowed", "files": [ { "path": "card/LICENSE", "bytes": 11357, "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" } ], "notes": [ "The upstream README explicitly applies Apache-2.0 to code, models and demos." ] }, "provenance": { "repository": "https://github.com/ZHKKKe/MODNet", "revision": "28165a451e4610c9d77cfdf925a94610bb2810fb", "weights": [ { "id": "modnet-webcam-portrait-matting", "source": "https://drive.google.com/uc?id=1Nf1ZxeJZJL8Qx9KadcYYyEmmlKhTADxX", "bytes": 26255603, "sha256": "913b82b66558db39b6286c150f809017d7528c872b156eb14333c9c6cb52108b" } ], "notes": [ "Exported by export_onnx.py and export_coreml.py with the versions documented in manifest.json." ] }, "release": { "state": "ready", "repository": "openvalle/valle-models" }, "contract": { "adapter": "modnet-image-matting", "version": 1, "inputs": [ { "name": "img", "dtype": "f32", "layout": "nchw", "shape": [ 1, 3, "height", "width" ], "range": [ -1, 1 ], "description": "RGB image normalized with (x / 255 - 0.5) / 0.5" } ], "outputs": [ { "name": "matte", "dtype": "f32", "layout": "nchw", "shape": [ 1, 1, "height", "width" ], "range": [ 0, 1 ], "description": "Portrait alpha matte" } ], "preprocess": { "color_space": "rgb", "resize": { "algorithm": "area", "width": 512, "height": 896, "dimension_multiple": 32 }, "normalization": { "scale": 0.00784313725490196, "bias": -1 } }, "postprocess": { "clamp": [ 0, 1 ], "resize_to_source": "bilinear-half-pixel", "encoding": "alpha8-png" } }, "artifacts": [ { "id": "onnx-fp32", "format": "onnx", "precision": "fp32", "entrypoint": "modnet_512x896.onnx", "files": [ { "path": "modnet_512x896.onnx", "bytes": 25964554, "sha256": "58293ecd31047aec8ebc4aed049f67b57fb8b97927108c2b718d3e9fe9b07c2c" } ], "metadata": { "opset": 17, "dynamic_shape": true, "default_width": 512, "default_height": 896 } }, { "id": "coreml-fp16-512x896", "format": "coreml-package", "precision": "fp16", "entrypoint": "modnet_fp16_512x896.mlpackage", "files": [ { "path": "modnet_fp16_512x896.mlpackage/Manifest.json", "bytes": 617, "sha256": "e2a3e0f78aa9e5ca5cfe620e0be72f37542dcc40c86bdce41d143fd742404f1a" }, { "path": "modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/model.mlmodel", "bytes": 168736, "sha256": "ba3bc84a58d7a62dde878ebc9f2ba48a16d4f861756a08441cc9ed73f0e7d0c2" }, { "path": "modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/weights/weight.bin", "bytes": 12938272, "sha256": "542b70422586d032b2a975b3de930c64f168d9a8420592d7bc8f106b98469dd5" } ], "metadata": { "fixed_shape": true, "width": 512, "height": 896, "minimum_deployment_target": "macOS14" } } ], "routes": [ { "id": "coreml-macos-arm64", "artifact": "coreml-fp16-512x896", "backend": "coreml", "platforms": [ "macos" ], "architectures": [ "aarch64" ], "status": "verified", "priority": 100, "requirements": { "minimum_os": "macOS 14", "minimum_runtime": null }, "options": { "compute_units": "cpu-and-neural-engine" }, "notes": "Verified locally on Apple M2 Pro; publish the mlpackage and compile it on the target Mac." }, { "id": "onnx-cpu-macos-arm64", "artifact": "onnx-fp32", "backend": "onnx-cpu", "platforms": [ "macos" ], "architectures": [ "aarch64" ], "status": "verified", "priority": 10, "notes": "Cross-platform fallback artifact; this exact route was measured locally." }, { "id": "onnx-cpu-macos-x86_64", "artifact": "onnx-fp32", "backend": "onnx-cpu", "platforms": [ "macos" ], "architectures": [ "x86_64" ], "status": "unverified", "priority": 10, "notes": "Artifact is portable; host route has not yet run in CI or on hardware." }, { "id": "onnx-cpu-windows-x86_64", "artifact": "onnx-fp32", "backend": "onnx-cpu", "platforms": [ "windows" ], "architectures": [ "x86_64" ], "status": "unverified", "priority": 10, "notes": "Promote to verified only after the GitHub Actions real-fixture gate passes." }, { "id": "onnx-cpu-linux-x86_64", "artifact": "onnx-fp32", "backend": "onnx-cpu", "platforms": [ "linux" ], "architectures": [ "x86_64" ], "status": "unverified", "priority": 10, "notes": "Promote to verified only after the GitHub Actions real-fixture gate passes." }, { "id": "onnx-cpu-linux-aarch64", "artifact": "onnx-fp32", "backend": "onnx-cpu", "platforms": [ "linux" ], "architectures": [ "aarch64" ], "status": "unverified", "priority": 10, "notes": "The ONNX artifact is architecture-neutral; ONNX Runtime packaging remains unverified." } ] }