diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..a6344aac8c09253b3b630fb776ae94478aa0275b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,35 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5a10b81a16848bf2ab17fba34b51fc43fa287e3f --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +--- +tags: + - onnx + - coreml +--- + +# Valle Models + +Model weights for local audio, image, and video processing. + +| Directory | Model | Purpose | +| --- | --- | --- | +| `birefnet/` | BiRefNet | Foreground extraction and background removal | +| `demucs/` | HTDemucs | Separate vocals and instrumental audio | +| `dpdfnet/` | DPDFNet | Speech denoising and enhancement | +| `edgetam/` | EdgeTAM | Prompt-based video object segmentation and tracking | +| `lama/` | LaMa | Fill masked image regions and remove unwanted objects | +| `modnet/` | MODNet | Portrait matting and background removal | +| `omnishotcut/` | OmniShotCut | Detect shot boundaries and transition types | +| `realesrgan/` | Real-ESRGAN | 4x image upscaling | +| `rife/` | RIFE | Video frame interpolation | +| `transnetv2/` | TransNetV2 | Detect video shot boundaries | + +Each model directory contains its weights, `release.v1.json`, and `card/LICENSE`. +`catalog.v1.json` indexes the available releases. Licenses are model-specific. diff --git a/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/model.mlmodel b/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..f15e9e1f91ea7d5d7188d82de91dc651adfc2d6d --- /dev/null +++ b/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ff580783881ed88df508f5f7c4dcc8457c8554a46eecbfee74295d0d78bedba +size 3350772 diff --git a/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..aa5358fd3167fb9acbf24c30e6df86984599b90c --- /dev/null +++ b/birefnet/birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae6cfe2eb67b0e05eaabe06a9a9e72f5746fa98ee917416cab2777522e10fec9 +size 463618272 diff --git a/birefnet/birefnet_fp16_1024.mlpackage/Manifest.json b/birefnet/birefnet_fp16_1024.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..620b181c9e15fc7022be1f3549c29038266fd4fb --- /dev/null +++ b/birefnet/birefnet_fp16_1024.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "40E0379D-7792-47F4-B39D-15C9E0A50202": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "6AD3539C-CEE7-4116-B28A-84735DD967FF": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "6AD3539C-CEE7-4116-B28A-84735DD967FF" +} diff --git a/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/model.mlmodel b/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..92794435d3f2c0f11a9b5bf643c73505e1e57669 --- /dev/null +++ b/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfc1183acded87198f135e2dcfaa1091957ee4c4e697437eaa337ce8533e49fc +size 3166485 diff --git a/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..2f0363f35a13c7134412e3e28bc82ef7800eec00 --- /dev/null +++ b/birefnet/birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1555acaeaddd643cf11faf74b6776b9f7e404331bf778c16c00d39dc4b6b9812 +size 463345440 diff --git a/birefnet/birefnet_fp16_512.mlpackage/Manifest.json b/birefnet/birefnet_fp16_512.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..99c2a169acba21925b0804cdbc8c9ac1fef83577 --- /dev/null +++ b/birefnet/birefnet_fp16_512.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "1F4DD92C-EAA5-42C1-89CB-209C081642A8": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "D466A618-544D-4597-8DCB-D1747D646007": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "1F4DD92C-EAA5-42C1-89CB-209C081642A8" +} diff --git a/birefnet/birefnet_gridsample_512.onnx b/birefnet/birefnet_gridsample_512.onnx new file mode 100644 index 0000000000000000000000000000000000000000..bdf01978b5279dff80bbdfc8008238c5d465dd77 --- /dev/null +++ b/birefnet/birefnet_gridsample_512.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7531b53e4054245522d59b4f84f4ee3bea167dcef4026593295c71bdaf7b7da7 +size 932508783 diff --git a/birefnet/birefnet_gridsample_int8_qdq.onnx b/birefnet/birefnet_gridsample_int8_qdq.onnx new file mode 100644 index 0000000000000000000000000000000000000000..ab04960c8139758b16c7536f252f1ac2a70511b7 --- /dev/null +++ b/birefnet/birefnet_gridsample_int8_qdq.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e8e3d62a8c17dd973f766367dcbbb9282dbc818c5ed6c200478897d3632f94e +size 352176884 diff --git a/birefnet/birefnet_native_int8_qdq.onnx b/birefnet/birefnet_native_int8_qdq.onnx new file mode 100644 index 0000000000000000000000000000000000000000..81ee7ba138efdf1f6263e6bae0a1a1c168877015 --- /dev/null +++ b/birefnet/birefnet_native_int8_qdq.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0af6472559bbe245812d775f12608b10a7d96885ec83cf1b9dd36277c51ab0f +size 347933182 diff --git a/birefnet/card/LICENSE b/birefnet/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..485921e8271834871ff2baafb892b79ef6a75e75 --- /dev/null +++ b/birefnet/card/LICENSE @@ -0,0 +1,21 @@ +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. diff --git a/birefnet/release.v1.json b/birefnet/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..87a88a73330273f9903dbb9260a30b134eed028b --- /dev/null +++ b/birefnet/release.v1.json @@ -0,0 +1,441 @@ +{ + "schema_version": 1, + "model": { + "id": "birefnet", + "version": "1.0.0", + "display_name": "BiRefNet", + "task": "image-matting", + "description": "High-resolution salient-object matting without a trimap or prompt" + }, + "license": { + "spdx": "MIT", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1066, + "sha256": "92a7089e0915fc32bc40067560b398f1e6a7a5958abd7d04eda393629a5acefb" + } + ], + "notes": [ + "The selected source and BiRefNet_dynamic weight repository are MIT licensed.", + "Non-commercial and unlicensed BiRefNet variants are excluded." + ] + }, + "provenance": { + "repository": "https://github.com/ZhengPeng7/BiRefNet", + "revision": "d83f35576a13fd90f8cca7c5e73d0907c2297328", + "weights": [ + { + "id": "birefnet-dynamic", + "source": "https://huggingface.co/ZhengPeng7/BiRefNet_dynamic/resolve/280306042f57b7a33854319da62fd86aaa89ec4c/model.safetensors", + "bytes": 444473596, + "sha256": "e3d2e4884e51ff30f0cd630edc6b1e41b06b7f23a0a2a5169f7b7cb33a711c2d" + } + ], + "notes": [ + "The native ONNX graph uses opset-19 DeformConv and is the CPU/CUDA artifact.", + "The DirectML candidate lowers deformable convolution to the parity-checked GridSample representation.", + "Both ONNX artifacts use static QDQ INT8 quantization for the selected linear MatMul subgraph while keeping float32 external tensors.", + "Final QDQ graphs were verified with ONNX Runtime 1.27.0 and 1.28.0; onnx-ir was used only by rejected INT4 research." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "birefnet-image-matting", + "version": 1, + "inputs": [ + { + "name": "img", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height", + "width" + ], + "range": null, + "description": "RGB image with ImageNet normalization" + } + ], + "outputs": [ + { + "name": "alpha", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 1, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "Foreground alpha matte" + } + ], + "preprocess": { + "color_space": "rgb", + "normalization": { + "mean": [ + 0.485, + 0.456, + 0.406 + ], + "std": [ + 0.229, + 0.224, + 0.225 + ] + }, + "profiles": { + "quality": [ + 1024, + 1024 + ], + "balanced": [ + 768, + 768 + ], + "coarse": [ + 512, + 512 + ] + } + }, + "postprocess": { + "clamp": [ + 0, + 1 + ], + "resize_to_source": "bilinear-half-pixel", + "encoding": "alpha8-png" + } + }, + "artifacts": [ + { + "id": "onnx-int8-qdq-native-dynamic", + "format": "onnx", + "precision": "int8-qdq", + "entrypoint": "birefnet_native_int8_qdq.onnx", + "files": [ + { + "path": "birefnet_native_int8_qdq.onnx", + "bytes": 347933182, + "sha256": "b0af6472559bbe245812d775f12608b10a7d96885ec83cf1b9dd36277c51ab0f" + } + ], + "metadata": { + "opset": 19, + "dynamic_shape": true, + "validated_sizes": [ + 512, + 768, + 1024 + ], + "default_profile": "balanced", + "default_width": 768, + "default_height": 768, + "deform_conv_nodes": 20, + "grid_sample_nodes": 0, + "quantization": "static QDQ INT8 on selected linear MatMul nodes", + "external_dtype": "f32", + "verified_runtimes": [ + "onnxruntime 1.27.0", + "onnxruntime 1.28.0" + ] + } + }, + { + "id": "onnx-int8-qdq-gridsample-dynamic", + "format": "onnx", + "precision": "int8-qdq", + "entrypoint": "birefnet_gridsample_int8_qdq.onnx", + "files": [ + { + "path": "birefnet_gridsample_int8_qdq.onnx", + "bytes": 352176884, + "sha256": "9e8e3d62a8c17dd973f766367dcbbb9282dbc818c5ed6c200478897d3632f94e" + } + ], + "metadata": { + "opset": 19, + "dynamic_shape": true, + "accepted_sizes": [ + 512, + 768, + 1024 + ], + "validated_sizes": [ + 512 + ], + "default_profile": "balanced", + "default_width": 768, + "default_height": 768, + "deform_conv_nodes": 0, + "grid_sample_nodes": 300, + "quantization": "static QDQ INT8 on selected linear MatMul nodes", + "external_dtype": "f32", + "route_scope": "future DirectML compatibility; ORT CPU smoke verified only at 512 and DirectML is not host-verified" + } + }, + { + "id": "coreml-fp16-1024", + "format": "coreml-package", + "precision": "fp16", + "entrypoint": "birefnet_fp16_1024.mlpackage", + "files": [ + { + "path": "birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 3350772, + "sha256": "5ff580783881ed88df508f5f7c4dcc8457c8554a46eecbfee74295d0d78bedba" + }, + { + "path": "birefnet_fp16_1024.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 463618272, + "sha256": "ae6cfe2eb67b0e05eaabe06a9a9e72f5746fa98ee917416cab2777522e10fec9" + }, + { + "path": "birefnet_fp16_1024.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "4bb5465ae6554d5e56cc4b4588703bbd68991c4e452694a25f2b4444035d3b19" + } + ], + "metadata": { + "fixed_shape": true, + "width": 1024, + "height": 1024, + "profile": "quality" + } + }, + { + "id": "coreml-fp16-512", + "format": "coreml-package", + "precision": "fp16", + "entrypoint": "birefnet_fp16_512.mlpackage", + "files": [ + { + "path": "birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 3166485, + "sha256": "dfc1183acded87198f135e2dcfaa1091957ee4c4e697437eaa337ce8533e49fc" + }, + { + "path": "birefnet_fp16_512.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 463345440, + "sha256": "1555acaeaddd643cf11faf74b6776b9f7e404331bf778c16c00d39dc4b6b9812" + }, + { + "path": "birefnet_fp16_512.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "4257032ea88e2b473188f1ca8a319096810de3083319d2e124bf60b329550303" + } + ], + "metadata": { + "fixed_shape": true, + "width": 512, + "height": 512, + "profile": "coarse" + } + } + ], + "routes": [ + { + "id": "coreml-quality-macos-arm64", + "artifact": "coreml-fp16-1024", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "cpu-and-gpu" + }, + "notes": "Compiled CoreML FP16 quality route verified on Apple M2 Pro; 0.793 seconds median and approximately 1.48 GiB peak RSS." + }, + { + "id": "coreml-coarse-macos-arm64", + "artifact": "coreml-fp16-512", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 80, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "cpu-and-gpu" + }, + "notes": "Compiled CoreML FP16 coarse route verified on Apple M2 Pro; 0.223 seconds median and approximately 1.41 GiB peak RSS." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "default_profile": "balanced", + "intra_threads": 6, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Native DeformConv INT8 QDQ route verified on Apple M2 Pro with ONNX Runtime CPU." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Artifact route only; no x86_64 Mac host verification." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Promote only after the real-fixture Windows CPU gate passes." + }, + { + "id": "onnx-cpu-linux-x86_64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Promote only after the real-fixture Linux CPU gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 40, + "requirements": { + "minimum_os": "Debian 12 (glibc 2.36)", + "minimum_runtime": "ONNX Runtime 1.28.0 shared library" + }, + "notes": "Verified on three real fixtures at 512 in a Debian 12 arm64 OrbStack VM with the official Microsoft ONNX Runtime 1.28 shared library; output parity passed, while physical-host performance was not measured." + }, + { + "id": "onnx-cuda-linux-x86_64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cuda", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 60, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0 with CUDAExecutionProvider" + }, + "notes": "Native DeformConv is the selected CUDA artifact, but this route has not been tested." + }, + { + "id": "onnx-cuda-windows-x86_64", + "artifact": "onnx-int8-qdq-native-dynamic", + "backend": "onnx-cuda", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 60, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0 with CUDAExecutionProvider" + }, + "notes": "Native DeformConv is the selected CUDA artifact, but this route has not been tested." + }, + { + "id": "onnx-directml-windows-x86_64", + "artifact": "onnx-int8-qdq-gridsample-dynamic", + "backend": "onnx-directml", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 70, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0 with DmlExecutionProvider" + }, + "notes": "GridSample representation avoids native DeformConv. This future DirectML route has not been tested on Windows." + } + ] +} diff --git a/demucs/card/LICENSE b/demucs/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..a45a376fb0fcd4a3de06b6c096e62028929a2dcb --- /dev/null +++ b/demucs/card/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +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. \ No newline at end of file diff --git a/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/model.mlmodel b/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..6fe47eb777f04e346a01ebba8754dfaba1a5b3fa --- /dev/null +++ b/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56bff6f4d98e79bb5500b173625bcc5be12a633745fef8f08869912a6e74927e +size 541040 diff --git a/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..8f5949ebb3819267f83d78abbe280d897c1faefb --- /dev/null +++ b/demucs/coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:834b75bd1d2ccfac136c4eb0a9aacb3ea07f02aaf1ba9a18689e7bb8031636c8 +size 214666752 diff --git a/demucs/coreml_htdemucs_core.mlpackage/Manifest.json b/demucs/coreml_htdemucs_core.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..dff8f874bfb72815add2c31d6a62a238f9d06b16 --- /dev/null +++ b/demucs/coreml_htdemucs_core.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "28EFCC63-DBCD-4794-95D9-41F68C32B170": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "95DEC951-FDA0-483B-832D-A609FD8E810F": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "95DEC951-FDA0-483B-832D-A609FD8E810F" +} diff --git a/demucs/htdemucs.onnx b/demucs/htdemucs.onnx new file mode 100644 index 0000000000000000000000000000000000000000..0133da46b74f0707980d9ec848d089d76fbbca0e --- /dev/null +++ b/demucs/htdemucs.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:008f5df59661715d93fe0332f6304cfb5700260b3a015344573fcfee67e77132 +size 170029787 diff --git a/demucs/release.v1.json b/demucs/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..780c7fcda68e64f5b9b04662ea2825dec4aad3c7 --- /dev/null +++ b/demucs/release.v1.json @@ -0,0 +1,313 @@ +{ + "schema_version": 1, + "model": { + "id": "demucs", + "version": "1.0.0", + "display_name": "Demucs", + "task": "audio-source-separation", + "description": "Two-stem vocals and instrumental separation derived from htdemucs" + }, + "license": { + "spdx": "MIT", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1087, + "sha256": "cf9b17822d1fcd4ff32ccbe14183386fb3adf6f2ff92dc184130823f7fc28173" + } + ], + "notes": [ + "Demucs v4 code and the selected htdemucs weight are distributed under MIT." + ] + }, + "provenance": { + "repository": "https://github.com/adefossez/demucs", + "revision": "6a604bb002d12c4fbabb303ba64db40b5c5743f0", + "weights": [ + { + "id": "htdemucs-955717e8", + "source": "https://huggingface.co/adefossez/HTDemucs/resolve/bf35a81b663819a8255c8fefee17f9d812b786b5/955717e8.safetensors", + "bytes": 84025440, + "sha256": "d9fa14133cfcc034a6758923bb3a8ca9f8dfd0b582134643bbf83f72c17576dd" + } + ], + "notes": [ + "The exporter pins the adefossez/HTDemucs repository revision instead of resolving its moving main branch.", + "All 533 state tensors match the legacy 955717e8-8726e21a.th checkpoint exactly; the different file hash reflects safetensors serialization.", + "The ONNX graph aggregates the upstream four sources into vocals and instrumental before iSTFT.", + "The CoreML graph aggregates the upstream four sources into vocals and instrumental before returning; the host performs STFT, two inverse STFTs, and time-branch addition without source aggregation." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "demucs-source-separation", + "version": 2, + "inputs": [ + { + "name": "mix", + "dtype": "f32", + "layout": "nct", + "shape": [ + 1, + 2, + 343980 + ], + "range": null, + "description": "Stereo 44.1 kHz audio segment" + } + ], + "outputs": [ + { + "name": "stems", + "dtype": "f32", + "layout": "nsct", + "shape": [ + 1, + 2, + 2, + 343980 + ], + "range": null, + "description": "Vocals and instrumental" + } + ], + "preprocess": { + "sample_rate": 44100, + "channels": 2, + "segment_samples": 343980, + "stride_samples": 257985, + "overlap": 0.25, + "last_segment": "right-zero-pad", + "normalization_reference": "mono reference ref[t] = (left[t] + right[t]) / 2 over the decoded whole track", + "normalization_mean": "mean = sum(ref) / T", + "normalization_std": "std = sqrt(sum((ref - mean)^2) / (T - 1)) + 1e-8", + "overlap_window": "w[i] = (i + 1) / 171990 for 0 <= i < 171990; w[i] = (343980 - i) / 171990 for 171990 <= i < 343980", + "long_audio": "triangular weighted overlap-add with transition_power=1" + }, + "postprocess": { + "stem_order": [ + "vocals", + "instrumental" + ], + "instrumental_definition": "sum(drums,bass,other)", + "denormalization": { + "vocals": "output * std + mean", + "instrumental": "output * std + 3 * mean" + }, + "long_audio": "divide the weighted sum by accumulated triangular weights", + "output_length": "crop each reconstructed stem to the original decoded sample count" + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "htdemucs.onnx", + "files": [ + { + "path": "htdemucs.onnx", + "bytes": 170029787, + "sha256": "008f5df59661715d93fe0332f6304cfb5700260b3a015344573fcfee67e77132" + } + ], + "metadata": { + "opset": 18, + "native_fft": true, + "minimum_onnxruntime": "1.28.0", + "output_stems": [ + "vocals", + "instrumental" + ], + "internal_sources": [ + "drums", + "bass", + "other", + "vocals" + ], + "segment_samples": 343980, + "sample_rate": 44100 + } + }, + { + "id": "coreml-fp32-core", + "format": "coreml-package", + "precision": "fp32", + "entrypoint": "coreml_htdemucs_core.mlpackage", + "files": [ + { + "path": "coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 541040, + "sha256": "56bff6f4d98e79bb5500b173625bcc5be12a633745fef8f08869912a6e74927e" + }, + { + "path": "coreml_htdemucs_core.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 214666752, + "sha256": "834b75bd1d2ccfac136c4eb0a9aacb3ea07f02aaf1ba9a18689e7bb8031636c8" + }, + { + "path": "coreml_htdemucs_core.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "fa0828fcd32bbd2f6ca1c2bdfec1d28a0784a9022efe1a8c8472a92bd19bde9b" + } + ], + "metadata": { + "fixed_shape": true, + "internal_sources": [ + "drums", + "bass", + "other", + "vocals" + ], + "output_stems": [ + "vocals", + "instrumental" + ], + "outputs": [ + { + "name": "masked_spec", + "shape": [ + 2, + 2, + 2, + 2048, + 336 + ], + "stem_axis": 0 + }, + { + "name": "time_branch", + "shape": [ + 1, + 2, + 2, + 343980 + ], + "stem_axis": 1 + } + ], + "in_graph_source_aggregation": true, + "host_stft_required": true, + "host_istft_required": true, + "host_istft_count": 2 + } + } + ], + "routes": [ + { + "id": "coreml-macos-arm64", + "artifact": "coreml-fp32-core", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "cpu-and-gpu" + }, + "notes": "The two-stem CoreML separator core passed parity and placed all 1586 operations on GPU in one segment on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "The optimized two-stem graph passed Rust ORT 1.28 parity and performance tests on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Promote only after the real-fixture Windows CI gate passes." + }, + { + "id": "onnx-cpu-linux-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Promote only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "notes": "Rust ort 2.0.0-rc.13 with ONNX Runtime 1.28 passed real-fixture parity and an 8 GiB memory-constrained run in an architecture-native Linux/aarch64 container inside an OrbStack VM on Apple M2 Pro. This verifies VM-backed runtime compatibility, not physical-server performance." + } + ] +} diff --git a/dpdfnet/card/LICENSE b/dpdfnet/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/dpdfnet/card/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/dpdfnet/dpdfnet2_48khz_hr.onnx b/dpdfnet/dpdfnet2_48khz_hr.onnx new file mode 100644 index 0000000000000000000000000000000000000000..1b073941269cdc499116eb1ed42a5b501a6579c0 --- /dev/null +++ b/dpdfnet/dpdfnet2_48khz_hr.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f0575a5cec0ba4ffd8f8bd657e06d007e4ccdd955d76faab922b9d3291dc14b +size 10493337 diff --git a/dpdfnet/dpdfnet2_48khz_hr_int8.onnx b/dpdfnet/dpdfnet2_48khz_hr_int8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..3e9263969b874744d967ff03000d894686c9bb12 --- /dev/null +++ b/dpdfnet/dpdfnet2_48khz_hr_int8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:694164a3955a5c3ddcefcf20a894f10884cd8d854827bd6dd1a5c8182a2c75e6 +size 3574698 diff --git a/dpdfnet/model_zoo/onnx/dpdfnet2_48khz_hr.onnx b/dpdfnet/model_zoo/onnx/dpdfnet2_48khz_hr.onnx new file mode 100644 index 0000000000000000000000000000000000000000..1b073941269cdc499116eb1ed42a5b501a6579c0 --- /dev/null +++ b/dpdfnet/model_zoo/onnx/dpdfnet2_48khz_hr.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f0575a5cec0ba4ffd8f8bd657e06d007e4ccdd955d76faab922b9d3291dc14b +size 10493337 diff --git a/dpdfnet/release.v1.json b/dpdfnet/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..0e48d1047eb526db26f059d6d8da8bec2e82a9e9 --- /dev/null +++ b/dpdfnet/release.v1.json @@ -0,0 +1,422 @@ +{ + "schema_version": 1, + "model": { + "id": "dpdfnet", + "version": "1.0.0", + "display_name": "DPDFNet", + "task": "speech-enhancement", + "description": "CPU-oriented causal speech enhancement at 48 kHz" + }, + "license": { + "spdx": "Apache-2.0", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 11357, + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + } + ], + "notes": [ + "The GitHub source and Hugging Face weight repository both declare Apache-2.0." + ] + }, + "provenance": { + "repository": "https://github.com/ceva-ip/DPDFNet", + "revision": "1333776d470f01ecf4a533f098f4e8aeb3d00b89", + "weights": [ + { + "id": "dpdfnet2-48khz-hr", + "source": "https://huggingface.co/Ceva-IP/DPDFNet/resolve/dd6818d00f50c836fed43a6243ebe49116de5964/onnx/dpdfnet2_48khz_hr.onnx", + "bytes": 10493337, + "sha256": "7f0575a5cec0ba4ffd8f8bd657e06d007e4ccdd955d76faab922b9d3291dc14b" + } + ], + "notes": [ + "The FP32 ONNX file is a byte-identical mirror of the pinned upstream artifact.", + "The dynamic INT8 artifact is reproducibly derived from that FP32 graph with ONNX Runtime 1.28.0 by quantizing only per-tensor Gemm and MatMul linear paths.", + "Per-channel dynamic INT8 fails at runtime for higher-rank MatMul on ONNX Runtime 1.27 and 1.28 arm64. Conv INT8, static QDQ, FP16, preoptimized ORT graphs and CoreML were measured and rejected." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "dpdfnet-streaming-enhancement", + "version": 1, + "inputs": [ + { + "name": "spec", + "dtype": "f32", + "layout": "ncf2", + "shape": [ + 1, + 1, + 481, + 2 + ], + "range": null, + "description": "One complex STFT frame" + }, + { + "name": "state_in", + "dtype": "f32", + "layout": "flat", + "shape": [ + 56436 + ], + "range": null, + "description": "Recurrent streaming state" + } + ], + "outputs": [ + { + "name": "spec_e", + "dtype": "f32", + "layout": "ncf2", + "shape": [ + 1, + 1, + 481, + 2 + ], + "range": null, + "description": "Enhanced complex STFT frame" + }, + { + "name": "state_out", + "dtype": "f32", + "layout": "flat", + "shape": [ + 56436 + ], + "range": null, + "description": "Next recurrent state" + } + ], + "preprocess": { + "sample_rate": 48000, + "accepted_channels": [ + 1, + 2 + ], + "stereo_downmix": "arithmetic-mean", + "channels": 1, + "fft_size": 960, + "hop_length": 480, + "window": "vorbis", + "center": true, + "pad_mode": "reflect", + "input_tail_padding_samples": 960, + "stateful": true, + "serial_frame_inference": true, + "streaming_file_io": true, + "audio_memory": "constant-with-duration", + "state_init": { + "erb_norm_init": "first 481 ONNX metadata values", + "spec_norm_init": "following 96 ONNX metadata values", + "remaining": "zero" + }, + "attenuation_limit_db": 12, + "noisy_frame_offset": 4 + }, + "postprocess": { + "latency_samples": 1920, + "stateful": true, + "drop_leading_samples": 1920, + "append_trailing_zeros": 1920, + "output_length": "exact-input-sample-count", + "encoding": "mono-f32-wav", + "output_publication": "atomic-no-replace", + "clamp": [ + -1, + 1 + ] + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "dpdfnet2_48khz_hr.onnx", + "files": [ + { + "path": "dpdfnet2_48khz_hr.onnx", + "bytes": 10493337, + "sha256": "7f0575a5cec0ba4ffd8f8bd657e06d007e4ccdd955d76faab922b9d3291dc14b" + } + ], + "metadata": { + "ir_version": 8, + "opset": 17, + "sample_rate": 48000, + "state_size": 56436, + "source": "byte-identical upstream mirror" + } + }, + { + "id": "onnx-int8-dynamic-linear", + "format": "onnx", + "precision": "int8-dynamic", + "entrypoint": "dpdfnet2_48khz_hr_int8.onnx", + "files": [ + { + "path": "dpdfnet2_48khz_hr_int8.onnx", + "bytes": 3574698, + "sha256": "694164a3955a5c3ddcefcf20a894f10884cd8d854827bd6dd1a5c8182a2c75e6" + } + ], + "metadata": { + "ir_version": 8, + "opset": 17, + "sample_rate": 48000, + "state_size": 56436, + "quantizer": "onnxruntime 1.28.0", + "quantization": "per-tensor dynamic QInt8 for Gemm and MatMul linear paths", + "matmul_integer_nodes": 36, + "float32_paths": [ + "activations", + "model-io", + "recurrent-state", + "conv", + "gru" + ], + "source_sha256": "7f0575a5cec0ba4ffd8f8bd657e06d007e4ccdd955d76faab922b9d3291dc14b" + } + } + ], + "routes": [ + { + "id": "onnx-int8-cpu-macos-arm64", + "artifact": "onnx-int8-dynamic-linear", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Dynamic INT8 quality, exact-tail, long-audio and Rust host gates passed on Apple M2 Pro." + }, + { + "id": "onnx-fp32-cpu-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback and Rust host parity passed on Apple M2 Pro." + }, + { + "id": "onnx-int8-cpu-macos-x86_64", + "artifact": "onnx-int8-dynamic-linear", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "The graph is portable, but no x86_64 Mac host gate has run." + }, + { + "id": "onnx-fp32-cpu-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; no x86_64 Mac host gate has run." + }, + { + "id": "onnx-int8-cpu-linux-aarch64", + "artifact": "onnx-int8-dynamic-linear", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 40, + "requirements": { + "minimum_os": "Debian 12 (glibc 2.36)", + "minimum_runtime": "ONNX Runtime 1.28.0 shared library" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Verified on three real fixtures in a Debian 12 arm64 OrbStack VM with the official ONNX Runtime 1.28 shared library; adjacent-library loading, exact length, lag zero and macOS parity passed. VM timing is not physical Linux performance evidence." + }, + { + "id": "onnx-fp32-cpu-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": "Debian 12 (glibc 2.36)", + "minimum_runtime": "ONNX Runtime 1.28.0 shared library" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "FP32 fallback verified on a real fixture in Debian 12 arm64 with an explicit ONNX Runtime 1.28 path; decoded PCM was identical to the macOS arm64 Rust output." + }, + { + "id": "onnx-int8-cpu-linux-x86_64", + "artifact": "onnx-int8-dynamic-linear", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0 shared library" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Promote only after a native Linux x86_64 real-fixture gate passes." + }, + { + "id": "onnx-fp32-cpu-linux-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0 shared library" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; no native Linux x86_64 host gate has run." + }, + { + "id": "onnx-int8-cpu-windows-x86_64", + "artifact": "onnx-int8-dynamic-linear", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 40, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Promote only after the Windows x86_64 real-fixture gate passes." + }, + { + "id": "onnx-fp32-cpu-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "intra_threads": 1, + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; no Windows x86_64 host gate has run." + } + ] +} diff --git a/edgetam/card/LICENSE b/edgetam/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/edgetam/card/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/edgetam/const_curr_pos.npy b/edgetam/const_curr_pos.npy new file mode 100644 index 0000000000000000000000000000000000000000..2d5466cb91f3b088bd491ae645e3723d6cb2e883 --- /dev/null +++ b/edgetam/const_curr_pos.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc8df34975e2216fd37829693362a2f42888287dec4a6e639387cfdf3705ab9b +size 4194432 diff --git a/edgetam/const_maskmem_pos.npy b/edgetam/const_maskmem_pos.npy new file mode 100644 index 0000000000000000000000000000000000000000..319b7ecff3e528c75edc9a5f076c9e72a8bf979f --- /dev/null +++ b/edgetam/const_maskmem_pos.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f7b47f04e010ed817fe39b0a5e5ea5a12b986ca94843c4ea22b2721128ea855 +size 131200 diff --git a/edgetam/const_maskmem_tpos.npy b/edgetam/const_maskmem_tpos.npy new file mode 100644 index 0000000000000000000000000000000000000000..7321023d82aaee7f6e2e5f5bb884291ac4429b60 --- /dev/null +++ b/edgetam/const_maskmem_tpos.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:150e7631ee1e0a258b9dbac747c18411748f07bf9c5ebb854fd2e71c4ad24d73 +size 1920 diff --git a/edgetam/const_no_mem_embed.npy b/edgetam/const_no_mem_embed.npy new file mode 100644 index 0000000000000000000000000000000000000000..f06fa8fce4d783e73ca91672bec2f348719fcc15 --- /dev/null +++ b/edgetam/const_no_mem_embed.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:191504dc42823381fd5445f16edb8290f217583a813570f8052f38b1dab223b8 +size 1152 diff --git a/edgetam/const_no_obj_ptr.npy b/edgetam/const_no_obj_ptr.npy new file mode 100644 index 0000000000000000000000000000000000000000..8cc14119aeec3d379ce57e1e7a2e21dc1adb46ec --- /dev/null +++ b/edgetam/const_no_obj_ptr.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1eaf62836fa7a7afb592bea5b2c043fee463cfd9a488c59440bded15982679fd +size 1152 diff --git a/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..7b24437aba3134ec9f615844c956df84d042dfef --- /dev/null +++ b/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae768c147183cb8cb93ab6618aa4f64d1a3e240992f547cbf44f48dc7a93686e +size 116814 diff --git a/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..3a87a19778f814d49f85e8cb3235dc3218b22f58 --- /dev/null +++ b/edgetam/coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd10298022c08c9ed040d5f867053ac01b33bafa75b58eb41a0eefbb2cfdd82c +size 12982528 diff --git a/edgetam/coreml_decoder_p1.mlpackage/Manifest.json b/edgetam/coreml_decoder_p1.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..60bc892a0f871011ebd24136a57c6775a458845b --- /dev/null +++ b/edgetam/coreml_decoder_p1.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "47A60BF7-6D1E-482F-B10F-BF89C2D7A37F": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "C841B1D8-11E2-415D-98E2-4F1554186B3F": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "47A60BF7-6D1E-482F-B10F-BF89C2D7A37F" +} diff --git a/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..f2eae1574160bd0b3189a601bed087b3bee37523 --- /dev/null +++ b/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acd0ceef053ae8b0dd0b4a85b9792cbaf784ca05392f4a491a44ba85f34f681b +size 116834 diff --git a/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..3a87a19778f814d49f85e8cb3235dc3218b22f58 --- /dev/null +++ b/edgetam/coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd10298022c08c9ed040d5f867053ac01b33bafa75b58eb41a0eefbb2cfdd82c +size 12982528 diff --git a/edgetam/coreml_decoder_p3.mlpackage/Manifest.json b/edgetam/coreml_decoder_p3.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..f5545b0bfd0396d1f8c3e43980ece17306056abc --- /dev/null +++ b/edgetam/coreml_decoder_p3.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "175D70D0-7E6C-4206-A903-0FAD82957F3B": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "36872325-3BCD-49EA-BB94-19CCE143C30A": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "36872325-3BCD-49EA-BB94-19CCE143C30A" +} diff --git a/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..a284bc07a3f5ecfc2fb3f14fb1e7f2e8e58a913e --- /dev/null +++ b/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ba4470185a2d64689098fffdd6b2e4f1e51afb525e4b54afb276f2be8f20d8c +size 217377 diff --git a/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..a0d607e51f222e48cd57335964bf5fc670bfce3a --- /dev/null +++ b/edgetam/coreml_image_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b47c8018a0bee4d029d61261e2a0f5167ddfa4619206fe20f69ae6062b352e74 +size 9818368 diff --git a/edgetam/coreml_image_encoder.mlpackage/Manifest.json b/edgetam/coreml_image_encoder.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..573aef40b0db903a861b7a4a0f3fd9f9357b9d06 --- /dev/null +++ b/edgetam/coreml_image_encoder.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "507AA697-7719-4971-A3B1-9B9A32435A1B": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "8B3839F6-F9DA-4519-BE18-DBEDD8CC9F90": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "507AA697-7719-4971-A3B1-9B9A32435A1B" +} diff --git a/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..2e42c54c183e6493fc8db68f609d6fe86bad3b71 --- /dev/null +++ b/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b477993d98a022f634cf91b8c878782af551c2407f34bc4edcb6647bf7874b7 +size 59778 diff --git a/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..4b98c6b6b7d25b99f009590e75e002255efdc7b8 --- /dev/null +++ b/edgetam/coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97d46c389cdf3487720684cf08d1c4e056de73a77e5a467ff4d1a1a23b692085 +size 12455744 diff --git a/edgetam/coreml_memattn_hot.mlpackage/Manifest.json b/edgetam/coreml_memattn_hot.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..9db402a4520b175c15880829054cbea7fc787fe5 --- /dev/null +++ b/edgetam/coreml_memattn_hot.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "C414E67A-16AC-43F3-B050-712B7F47FF12": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "D0558388-A5A2-4DB9-B5EC-67C81B14FCE5": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "D0558388-A5A2-4DB9-B5EC-67C81B14FCE5" +} diff --git a/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..1eedfee4bb8699f0e0e8ef5db4b64f62f783f618 --- /dev/null +++ b/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1ae3b5e778261c0425491cb0eed124f93d12c9250dd8bcd70afcd53a05a04db +size 60573 diff --git a/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..0f52e2ddd66319aff1c6e7976ec31b20d4b2af71 --- /dev/null +++ b/edgetam/coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11d4dec312f671be3efe073ecf0378f9c934e264cb65ba5721161c09cdd7bc21 +size 11988736 diff --git a/edgetam/coreml_memattn_warm.mlpackage/Manifest.json b/edgetam/coreml_memattn_warm.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ca09d4f089c5efa37e16b52fd7096b6a4cd829fe --- /dev/null +++ b/edgetam/coreml_memattn_warm.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "A838A04C-CDAC-4DBA-AE11-C7E86F318397": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "EFD58677-247D-4708-A927-28C56E33DE95": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "A838A04C-CDAC-4DBA-AE11-C7E86F318397" +} diff --git a/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/model.mlmodel b/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..410e9cd29d62accebb1b100287e9d579a3941daa --- /dev/null +++ b/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a808f399412d742d77e42a140a971b43e9d956c05bba698aa590e7abfeaa88fe +size 110278 diff --git a/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..ab4b9e295ad7391f0426a90818fefbaaeaf17965 --- /dev/null +++ b/edgetam/coreml_memencode.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:795608844d518ff7610e47065198f3d46dfa1585d7a66000f408205beb1ca5f6 +size 4348224 diff --git a/edgetam/coreml_memencode.mlpackage/Manifest.json b/edgetam/coreml_memencode.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..b8710dd504f46d66216c552fd84920a8530f7173 --- /dev/null +++ b/edgetam/coreml_memencode.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "68FF39DD-925A-455E-8F74-F84E1CC3A716": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "B69958B8-9CEE-4752-B6EC-37677649F5DF": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "68FF39DD-925A-455E-8F74-F84E1CC3A716" +} diff --git a/edgetam/decoder_p1.onnx b/edgetam/decoder_p1.onnx new file mode 100644 index 0000000000000000000000000000000000000000..4a822b99bebea2f7f4da03c0758b897659613df2 --- /dev/null +++ b/edgetam/decoder_p1.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:815d8a4151be7e61b2be9978d886eee61d0aaa1c5db7a65cbf47afbcb65025dd +size 21852952 diff --git a/edgetam/decoder_p3.onnx b/edgetam/decoder_p3.onnx new file mode 100644 index 0000000000000000000000000000000000000000..36fc64e32ac1483655688bd29bde444d493193e3 --- /dev/null +++ b/edgetam/decoder_p3.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50281cb7f35e6c68ab6e362de0f0504a724ae4b74b6f547319daeb1bcfef3f45 +size 21852984 diff --git a/edgetam/image_encoder.onnx b/edgetam/image_encoder.onnx new file mode 100644 index 0000000000000000000000000000000000000000..069e31cc102b80717341ac7444b0a4108151b1b0 --- /dev/null +++ b/edgetam/image_encoder.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d00500a851472cf8acabe1ebfec709e1d7982b1a3720f0c6a39810446c95d62 +size 19755470 diff --git a/edgetam/memattn.onnx b/edgetam/memattn.onnx new file mode 100644 index 0000000000000000000000000000000000000000..08c5db5c895243c95f123d513c4a432a0fc23209 --- /dev/null +++ b/edgetam/memattn.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:750141ec101c2a8f72cbd6c56238724b065508343633e279df70e390a75db8f9 +size 16344118 diff --git a/edgetam/memencode.onnx b/edgetam/memencode.onnx new file mode 100644 index 0000000000000000000000000000000000000000..61d248b1644483d392badeba9ce7b76d23d3dc82 --- /dev/null +++ b/edgetam/memencode.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3eaf5fb047c001c5bc9296ea37ff484149732b168872ada684781e61416f362 +size 6672757 diff --git a/edgetam/prompt_protocol.v1.json b/edgetam/prompt_protocol.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..298a7924fb47bf4a7b88c1eed14d87342888f5ec --- /dev/null +++ b/edgetam/prompt_protocol.v1.json @@ -0,0 +1,31 @@ +{ + "schema_version": 1, + "decoder": "decoder_p3", + "seed_frame": 0, + "coordinate_space": "original_frame_pixels_xy", + "point_count": 3, + "labels": { + "0": "negative", + "1": "positive" + }, + "selection_rule": [ + "Use foreground points on distinct semantic or spatial parts of the target.", + "Use a negative point only when it excludes a plausible adjacent distractor.", + "Do not derive prompts from any frame after the seed frame." + ], + "benchmark_cases": { + "davis_bear": { + "frame_size": [854, 480], + "points": [[311, 290, 1], [242, 290, 1], [853, 0, 0]] + }, + "davis_bmx_trees": { + "frame_size": [854, 480], + "points": [[440, 221, 1], [379, 297, 1], [504, 276, 1]] + } + }, + "quality_gate": { + "metric": "J_and_F", + "minimum_per_backend_per_case": 0.85, + "cross_backend_mask_iou_minimum": 0.97 + } +} diff --git a/edgetam/release.v1.json b/edgetam/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..8a3c1d24672483eaa11c4ba840c134ed42addad3 --- /dev/null +++ b/edgetam/release.v1.json @@ -0,0 +1,476 @@ +{ + "schema_version": 1, + "model": { + "id": "edgetam", + "version": "1.0.0", + "display_name": "EdgeTAM", + "task": "video-object-segmentation", + "description": "Prompted object segmentation and mask propagation for video" + }, + "license": { + "spdx": "Apache-2.0", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 11357, + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + } + ], + "notes": [ + "The selected EdgeTAM source and weight are Apache-2.0." + ] + }, + "provenance": { + "repository": "https://github.com/facebookresearch/EdgeTAM", + "revision": "7711e012a30a2402c4eaab637bdb00a521302c91", + "weights": [ + { + "id": "edgetam", + "source": "https://github.com/facebookresearch/EdgeTAM/tree/7711e012a30a2402c4eaab637bdb00a521302c91/checkpoints", + "bytes": 56116523, + "sha256": "ed2d4850b8792c239689b04315d23cc42a39eb5061389a4a9595e4e1e778ed24" + } + ], + "notes": [ + "Export applies the included non-contiguous view-to-reshape patch before conversion." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "edgetam-video-segmentation", + "version": 1, + "inputs": [ + { + "name": "image", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + 1024, + 1024 + ], + "range": null, + "description": "RGB video frame" + }, + { + "name": "coords", + "dtype": "f32", + "layout": "npc", + "shape": [ + 1, + 3, + 2 + ], + "range": null, + "description": "Three fixed-protocol seed points" + }, + { + "name": "labels", + "dtype": "i32", + "layout": "np", + "shape": [ + 1, + 3 + ], + "range": null, + "description": "Seed-point labels" + } + ], + "outputs": [ + { + "name": "mask", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 1, + 1024, + 1024 + ], + "range": null, + "description": "Selected object mask" + } + ], + "preprocess": { + "color_space": "rgb", + "canvas": [ + 1024, + 1024 + ], + "prompt_protocol": "prompt_protocol.v1.json" + }, + "postprocess": { + "stateful": true, + "host_contract": [ + "memory-bank", + "pointer-queue", + "static-kv-slots", + "mask-selection", + "resize-to-source" + ] + } + }, + "artifacts": [ + { + "id": "onnx-fp32-pipeline", + "format": "onnx", + "precision": "fp32", + "entrypoint": "image_encoder.onnx", + "files": [ + { + "path": "image_encoder.onnx", + "bytes": 19755470, + "sha256": "0d00500a851472cf8acabe1ebfec709e1d7982b1a3720f0c6a39810446c95d62" + }, + { + "path": "memattn.onnx", + "bytes": 16344118, + "sha256": "750141ec101c2a8f72cbd6c56238724b065508343633e279df70e390a75db8f9" + }, + { + "path": "decoder_p3.onnx", + "bytes": 21852984, + "sha256": "50281cb7f35e6c68ab6e362de0f0504a724ae4b74b6f547319daeb1bcfef3f45" + }, + { + "path": "decoder_p1.onnx", + "bytes": 21852952, + "sha256": "815d8a4151be7e61b2be9978d886eee61d0aaa1c5db7a65cbf47afbcb65025dd" + }, + { + "path": "memencode.onnx", + "bytes": 6672757, + "sha256": "c3eaf5fb047c001c5bc9296ea37ff484149732b168872ada684781e61416f362" + }, + { + "path": "const_curr_pos.npy", + "bytes": 4194432, + "sha256": "bc8df34975e2216fd37829693362a2f42888287dec4a6e639387cfdf3705ab9b" + }, + { + "path": "const_maskmem_pos.npy", + "bytes": 131200, + "sha256": "2f7b47f04e010ed817fe39b0a5e5ea5a12b986ca94843c4ea22b2721128ea855" + }, + { + "path": "const_maskmem_tpos.npy", + "bytes": 1920, + "sha256": "150e7631ee1e0a258b9dbac747c18411748f07bf9c5ebb854fd2e71c4ad24d73" + }, + { + "path": "const_no_mem_embed.npy", + "bytes": 1152, + "sha256": "191504dc42823381fd5445f16edb8290f217583a813570f8052f38b1dab223b8" + }, + { + "path": "const_no_obj_ptr.npy", + "bytes": 1152, + "sha256": "1eaf62836fa7a7afb592bea5b2c043fee463cfd9a488c59440bded15982679fd" + }, + { + "path": "prompt_protocol.v1.json", + "bytes": 866, + "sha256": "d7d35a8da48deb32b93c6b948fa33aa39595a556d74245d84ecd3d67a65170a1" + } + ], + "metadata": { + "opset": 17, + "components": [ + "image_encoder", + "memattn", + "decoder_p3", + "decoder_p1", + "memencode" + ] + } + }, + { + "id": "coreml-pipeline", + "format": "coreml-package", + "precision": "mixed", + "entrypoint": "coreml_image_encoder.mlpackage", + "files": [ + { + "path": "coreml_image_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 217377, + "sha256": "5ba4470185a2d64689098fffdd6b2e4f1e51afb525e4b54afb276f2be8f20d8c" + }, + { + "path": "coreml_image_encoder.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 9818368, + "sha256": "b47c8018a0bee4d029d61261e2a0f5167ddfa4619206fe20f69ae6062b352e74" + }, + { + "path": "coreml_image_encoder.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "f2df3937ebaa4e877862fb481dcc1c852c0377d3b5bb5ac8ba81601d5f173c99" + }, + { + "path": "coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 59778, + "sha256": "1b477993d98a022f634cf91b8c878782af551c2407f34bc4edcb6647bf7874b7" + }, + { + "path": "coreml_memattn_hot.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 12455744, + "sha256": "97d46c389cdf3487720684cf08d1c4e056de73a77e5a467ff4d1a1a23b692085" + }, + { + "path": "coreml_memattn_hot.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "6f74bb357766d7d185c262a35856830f9e65f6e94e3196832a96554c0cdde7c7" + }, + { + "path": "coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 60573, + "sha256": "c1ae3b5e778261c0425491cb0eed124f93d12c9250dd8bcd70afcd53a05a04db" + }, + { + "path": "coreml_memattn_warm.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 11988736, + "sha256": "11d4dec312f671be3efe073ecf0378f9c934e264cb65ba5721161c09cdd7bc21" + }, + { + "path": "coreml_memattn_warm.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "e02c1867893e8f053871b17d6ebb3047dab64a0779e2dd473c9ebd4e91443d3d" + }, + { + "path": "coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 116834, + "sha256": "acd0ceef053ae8b0dd0b4a85b9792cbaf784ca05392f4a491a44ba85f34f681b" + }, + { + "path": "coreml_decoder_p3.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 12982528, + "sha256": "dd10298022c08c9ed040d5f867053ac01b33bafa75b58eb41a0eefbb2cfdd82c" + }, + { + "path": "coreml_decoder_p3.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "42d71aaaa3bc884576e2de30cf5b20aca70b023f7d9922d4caf2cad340a987e2" + }, + { + "path": "coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 116814, + "sha256": "ae768c147183cb8cb93ab6618aa4f64d1a3e240992f547cbf44f48dc7a93686e" + }, + { + "path": "coreml_decoder_p1.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 12982528, + "sha256": "dd10298022c08c9ed040d5f867053ac01b33bafa75b58eb41a0eefbb2cfdd82c" + }, + { + "path": "coreml_decoder_p1.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "d0ed8dc4898fc0da1bcfbf0ce4cacc8dedc64639526179e0a9d95b7d8814c4d7" + }, + { + "path": "coreml_memencode.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 110278, + "sha256": "a808f399412d742d77e42a140a971b43e9d956c05bba698aa590e7abfeaa88fe" + }, + { + "path": "coreml_memencode.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 4348224, + "sha256": "795608844d518ff7610e47065198f3d46dfa1585d7a66000f408205beb1ca5f6" + }, + { + "path": "coreml_memencode.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "ff8b5a83c0a530e416f6ced23fbba6076e3df19fd12055a7c6b93b12c197a55a" + }, + { + "path": "const_curr_pos.npy", + "bytes": 4194432, + "sha256": "bc8df34975e2216fd37829693362a2f42888287dec4a6e639387cfdf3705ab9b" + }, + { + "path": "const_maskmem_pos.npy", + "bytes": 131200, + "sha256": "2f7b47f04e010ed817fe39b0a5e5ea5a12b986ca94843c4ea22b2721128ea855" + }, + { + "path": "const_maskmem_tpos.npy", + "bytes": 1920, + "sha256": "150e7631ee1e0a258b9dbac747c18411748f07bf9c5ebb854fd2e71c4ad24d73" + }, + { + "path": "const_no_mem_embed.npy", + "bytes": 1152, + "sha256": "191504dc42823381fd5445f16edb8290f217583a813570f8052f38b1dab223b8" + }, + { + "path": "const_no_obj_ptr.npy", + "bytes": 1152, + "sha256": "1eaf62836fa7a7afb592bea5b2c043fee463cfd9a488c59440bded15982679fd" + }, + { + "path": "prompt_protocol.v1.json", + "bytes": 866, + "sha256": "d7d35a8da48deb32b93c6b948fa33aa39595a556d74245d84ecd3d67a65170a1" + } + ], + "metadata": { + "components": [ + "image_encoder", + "memattn_hot", + "memattn_warm", + "decoder_p3", + "decoder_p1", + "memencode" + ] + } + } + ], + "routes": [ + { + "id": "coreml-macos-arm64", + "artifact": "coreml-pipeline", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "component-specific", + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1 + }, + "notes": "The complete mixed CPU/ANE state machine passed parity, placement and fixed-prompt quality gates on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32-pipeline", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1, + "borrow_inputs": true, + "cache_full_memory_constants": true + }, + "notes": "The five-graph ONNX pipeline and ort 2.0.0-rc.13 Rust host passed parity and performance tests on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32-pipeline", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1, + "borrow_inputs": true, + "cache_full_memory_constants": true + }, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32-pipeline", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1, + "borrow_inputs": true, + "cache_full_memory_constants": true + }, + "notes": "Promote only after the real-fixture Windows CI gate passes." + }, + { + "id": "onnx-cpu-linux-x86_64", + "artifact": "onnx-fp32-pipeline", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1, + "borrow_inputs": true, + "cache_full_memory_constants": true + }, + "notes": "Promote only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32-pipeline", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "pipeline_loading": "encoder-worker-concurrent-with-tracker", + "bounded_prefetch": 1, + "borrow_inputs": true, + "cache_full_memory_constants": true + }, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + } + ] +} diff --git a/lama/card/LICENSE b/lama/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..ca822bb5f62a37a5a73f56a2d563b16dab46c03f --- /dev/null +++ b/lama/card/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [2021] Samsung Research + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/lama/lama_256x256.onnx b/lama/lama_256x256.onnx new file mode 100644 index 0000000000000000000000000000000000000000..c51f2774877f67cd233d5a0782c118808ea175d2 --- /dev/null +++ b/lama/lama_256x256.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3a33df95c710421ec38f9344190ca56424812d444cc8044ab34510278cd4af3 +size 206161690 diff --git a/lama/lama_640x384.onnx b/lama/lama_640x384.onnx new file mode 100644 index 0000000000000000000000000000000000000000..51825013cc7edf49064e6de4fb4febb2452cf60c --- /dev/null +++ b/lama/lama_640x384.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e19a2560b41fdae45e206187a751b02e30dd89e478fb9f16907a789381552f38 +size 207690502 diff --git a/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel b/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..36259f911054a2cbcaea127a1539b0c447bb3798 --- /dev/null +++ b/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a00ff89fb2b2f5e6f7f8df13f8c85fd53e67cee11e68102933993c4ba50d7c53 +size 1360732 diff --git a/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..4cb862a4b2f6766eb6027672c9c5bf332468a9ae --- /dev/null +++ b/lama/lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a7f81739605593ef8a1cafb790128eb8c8b22ac1d805e38d261b240b0816447 +size 102044288 diff --git a/lama/lama_fp16_256x256_gpu.mlpackage/Manifest.json b/lama/lama_fp16_256x256_gpu.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ae4f4001dc1b9a1a3223bd355b682c28871c6e53 --- /dev/null +++ b/lama/lama_fp16_256x256_gpu.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "6BAC516D-D4BA-4CC4-A409-04C4CF3C0BC1": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "FC2DC458-73E5-4E4E-B43E-9873A0B5E58D": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "6BAC516D-D4BA-4CC4-A409-04C4CF3C0BC1" +} diff --git a/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel b/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..70a53d591260757d05d7355937f1809c7994b696 --- /dev/null +++ b/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b236f5a2dc39b66d75f2c6cd1ef95e392fffd580d9df56371b38fc99aff8ed36 +size 1362774 diff --git a/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..b1fcef582d6e99e94f37b0533c8fc3e307524a53 --- /dev/null +++ b/lama/lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d82c2aa45635db55bc97f5bbf777e2f66ba25f686b5e62ca30d02d273b6a9c73 +size 102075136 diff --git a/lama/lama_fp16_640x384_gpu.mlpackage/Manifest.json b/lama/lama_fp16_640x384_gpu.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..123d9e7628dd0304b649775676207a87a6c8cbea --- /dev/null +++ b/lama/lama_fp16_640x384_gpu.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "30342040-3745-4075-97BE-8206A6CF300E": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + }, + "FC462125-3C22-488F-BF20-7E11B4F1AF59": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + } + }, + "rootModelIdentifier": "30342040-3745-4075-97BE-8206A6CF300E" +} diff --git a/lama/release.v1.json b/lama/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..2f6fb3706a041a440cf6726443200f96160cbc8c --- /dev/null +++ b/lama/release.v1.json @@ -0,0 +1,331 @@ +{ + "schema_version": 1, + "model": { + "id": "lama", + "version": "1.0.0", + "display_name": "LaMa", + "task": "image-inpainting", + "description": "Mask-guided image inpainting and object removal" + }, + "license": { + "spdx": "Apache-2.0", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 11348, + "sha256": "4ceeeac5a802e86c413c22b16cce8e9a22027b0250c97e6f8ac97c14cf0542c0" + } + ], + "notes": [ + "Only the inference generator is used; unrelated training evaluator weights are excluded." + ] + }, + "provenance": { + "repository": "https://github.com/advimman/lama", + "revision": "786f5936b27fb3dacd2b1ad799e4de968ea697e7", + "weights": [ + { + "id": "big-lama-archive", + "source": "https://huggingface.co/smartywu/big-lama/resolve/05cb2be7f8dbe6ca7c6e78f4fc827a4b2baaa4a9/big-lama.zip", + "bytes": 381428720, + "sha256": "f1b358ca24093b93a106183b98a3dea6e8ed09f3b43ea7251eb2c81e7b4575f6" + }, + { + "id": "big-lama-generator", + "source": "derived:big-lama-archive#generator", + "bytes": 204547078, + "sha256": "85fee958ca51b2c1b97e4cd07557f8563e6b89d031b27187b4c094f23a31233f" + } + ], + "notes": [ + "The generator is deterministically stripped from the pinned archive before export." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "lama-image-inpainting", + "version": 1, + "inputs": [ + { + "name": "image", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "RGB source image" + }, + { + "name": "mask", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 1, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "One means pixels to replace" + } + ], + "outputs": [ + { + "name": "rgb", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "Inpainted RGB crop" + } + ], + "preprocess": { + "canvas": [ + 640, + 384 + ], + "canvas_buckets": [ + [ + 256, + 256 + ], + [ + 640, + 384 + ] + ], + "bucket_policy": "first context-expanded crop that fits without scaling; final bucket is fallback", + "host_contract": "crop-mask-with-context-and-pad" + }, + "postprocess": { + "reject_non_finite": true, + "composite_to_source": true + } + }, + "artifacts": [ + { + "id": "onnx-fp32-buckets", + "format": "onnx", + "precision": "fp32", + "entrypoint": "lama_640x384.onnx", + "files": [ + { + "path": "lama_256x256.onnx", + "bytes": 206161690, + "sha256": "e3a33df95c710421ec38f9344190ca56424812d444cc8044ab34510278cd4af3" + }, + { + "path": "lama_640x384.onnx", + "bytes": 207690502, + "sha256": "e19a2560b41fdae45e206187a751b02e30dd89e478fb9f16907a789381552f38" + } + ], + "metadata": { + "opset": 17, + "fixed_shape_buckets": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + } + }, + { + "id": "coreml-fp16-buckets", + "format": "coreml-package", + "precision": "fp16", + "entrypoint": "lama_fp16_640x384_gpu.mlpackage", + "files": [ + { + "path": "lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 1360732, + "sha256": "a00ff89fb2b2f5e6f7f8df13f8c85fd53e67cee11e68102933993c4ba50d7c53" + }, + { + "path": "lama_fp16_256x256_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 102044288, + "sha256": "4a7f81739605593ef8a1cafb790128eb8c8b22ac1d805e38d261b240b0816447" + }, + { + "path": "lama_fp16_256x256_gpu.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "eceef0d7f7f00f7882bfa3f2e6d635e15fe76684eacf5149347bbac22d452fcb" + }, + { + "path": "lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 1362774, + "sha256": "b236f5a2dc39b66d75f2c6cd1ef95e392fffd580d9df56371b38fc99aff8ed36" + }, + { + "path": "lama_fp16_640x384_gpu.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 102075136, + "sha256": "d82c2aa45635db55bc97f5bbf777e2f66ba25f686b5e62ca30d02d273b6a9c73" + }, + { + "path": "lama_fp16_640x384_gpu.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "353b45f958d73d74c1d5fe78b8554c993356d782ec8130e0e59fb8a5cf212a34" + } + ], + "metadata": { + "fixed_shape_buckets": { + "256x256": "lama_fp16_256x256_gpu.mlpackage", + "fallback": "lama_fp16_640x384_gpu.mlpackage" + } + } + } + ], + "routes": [ + { + "id": "coreml-macos-arm64", + "artifact": "coreml-fp16-buckets", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "cpu-and-gpu", + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_fp16_256x256_gpu.mlpackage", + "fallback": "lama_fp16_640x384_gpu.mlpackage" + } + }, + "notes": "Real-fixture quality and non-finite protection passed on Apple M2 Pro; ANE is intentionally excluded." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32-buckets", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "options": { + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + }, + "notes": "The fixed-canvas ONNX path and host contract passed locally on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32-buckets", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "options": { + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + }, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32-buckets", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "options": { + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + }, + "notes": "Promote only after the real-fixture Windows CI gate passes." + }, + { + "id": "onnx-cpu-linux-x86_64", + "artifact": "onnx-fp32-buckets", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "options": { + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + }, + "notes": "Promote only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32-buckets", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "options": { + "load_policy": "resolve-bucket-then-load", + "bucket_entrypoints": { + "256x256": "lama_256x256.onnx", + "fallback": "lama_640x384.onnx" + } + }, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + } + ] +} diff --git a/modnet/card/LICENSE b/modnet/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/modnet/card/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/modnet/modnet_512x896.onnx b/modnet/modnet_512x896.onnx new file mode 100644 index 0000000000000000000000000000000000000000..2aa4e80156489dc5375c0ad6f994159df26ef31e --- /dev/null +++ b/modnet/modnet_512x896.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58293ecd31047aec8ebc4aed049f67b57fb8b97927108c2b718d3e9fe9b07c2c +size 25964554 diff --git a/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/model.mlmodel b/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..b7dbc8d0e4d0c9a032eb65d4cadb50cef217b443 --- /dev/null +++ b/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba3bc84a58d7a62dde878ebc9f2ba48a16d4f861756a08441cc9ed73f0e7d0c2 +size 168736 diff --git a/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..08235b112419cb5e59c5bbacb7857083eab52716 --- /dev/null +++ b/modnet/modnet_fp16_512x896.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:542b70422586d032b2a975b3de930c64f168d9a8420592d7bc8f106b98469dd5 +size 12938272 diff --git a/modnet/modnet_fp16_512x896.mlpackage/Manifest.json b/modnet/modnet_fp16_512x896.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..87931952e794d63b2ab3ebfe3b91111efb48f6c3 --- /dev/null +++ b/modnet/modnet_fp16_512x896.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "79B2EA07-5151-4176-AC97-31D156FA4B65": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "920805DA-C233-4B84-97EB-7A542AA313D1": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "920805DA-C233-4B84-97EB-7A542AA313D1" +} diff --git a/modnet/release.v1.json b/modnet/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..cd5744d46a0274d51554afab3ff62c268088256e --- /dev/null +++ b/modnet/release.v1.json @@ -0,0 +1,247 @@ +{ + "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." + } + ] +} diff --git a/omnishotcut/card/LICENSE b/omnishotcut/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..54342a8615958e75444ec6505873fe9d6abf7415 --- /dev/null +++ b/omnishotcut/card/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 UVA Computer Vision Lab + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software, model weights, 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. diff --git a/omnishotcut/omnishotcut.onnx b/omnishotcut/omnishotcut.onnx new file mode 100644 index 0000000000000000000000000000000000000000..0789caa2d1f37fa50c0ac4a1c2ac287e36c2488b --- /dev/null +++ b/omnishotcut/omnishotcut.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbfd6d0e5f067368ce9db5609a9965656797dccc570f0c1e8fbf690676705681 +size 169481455 diff --git a/omnishotcut/omnishotcut_conv_qdq_u8s8.onnx b/omnishotcut/omnishotcut_conv_qdq_u8s8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..4371295b744b4e3b6dc03b13f4e0b8f70deef674 --- /dev/null +++ b/omnishotcut/omnishotcut_conv_qdq_u8s8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c85fd2bbdd1fd81bde23acc69a4ff8a526a35ff3c6a83b32e4d7973579610a64 +size 135617633 diff --git a/omnishotcut/release.v1.json b/omnishotcut/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..b89d70022db57baed312fbaf37d706969167317a --- /dev/null +++ b/omnishotcut/release.v1.json @@ -0,0 +1,372 @@ +{ + "schema_version": 1, + "model": { + "id": "omnishotcut", + "version": "1.0.0", + "display_name": "OmniShotCut", + "task": "shot-boundary-detection", + "description": "Shot ranges with intra-shot and inter-shot transition classes" + }, + "license": { + "spdx": "MIT", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1096, + "sha256": "de36bb4f044531c92303730eeb737748ab3e8834bf293b2ffc23aa347fc32c26" + } + ], + "notes": [ + "The selected source and weight are MIT licensed." + ] + }, + "provenance": { + "repository": "https://github.com/UVA-Computer-Vision-Lab/OmniShotCut", + "revision": "23ad6fb41b296fb9258b0e7825125a914573b906", + "weights": [ + { + "id": "omnishotcut", + "source": "https://huggingface.co/uva-cv-lab/OmniShotCut/resolve/7f646c4ff4bb843e18c013481fb5d9ed2b068c6b/OmniShotCut_ckpt.pth", + "bytes": 164149963, + "sha256": "5948ea78e00626c0e6c5e742e64873ef872cf4a5071d2a0841aed51c3e686cfa" + } + ], + "notes": [ + "The CoreML candidate is excluded because it failed the flash_no_cut negative quality gate." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "omnishotcut-shot-detection", + "version": 1, + "inputs": [ + { + "name": "frames", + "dtype": "u8", + "layout": "thwc", + "shape": [ + 100, + 96, + 128, + 3 + ], + "range": [ + 0, + 255 + ], + "description": "RGB frame window" + } + ], + "outputs": [ + { + "name": "intra_idx", + "dtype": "i64", + "layout": "q", + "shape": [ + 24 + ], + "range": null, + "description": "Intra-shot transition class per query" + }, + { + "name": "inter_idx", + "dtype": "i64", + "layout": "q", + "shape": [ + 24 + ], + "range": null, + "description": "Inter-shot transition class per query" + }, + { + "name": "range_idx", + "dtype": "i64", + "layout": "q", + "shape": [ + 24 + ], + "range": null, + "description": "Half-open shot ranges" + } + ], + "preprocess": { + "window_frames": 100, + "overlap_frames": 20, + "resize": [ + 128, + 96 + ], + "color_space": "rgb" + }, + "postprocess": { + "range_end": "exclusive", + "overlap_merge": "model-contract" + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "omnishotcut.onnx", + "files": [ + { + "path": "omnishotcut.onnx", + "bytes": 169481455, + "sha256": "dbfd6d0e5f067368ce9db5609a9965656797dccc570f0c1e8fbf690676705681" + } + ], + "metadata": { + "opset": 17, + "window_frames": 100, + "overlap_frames": 20 + } + }, + { + "id": "onnx-conv-qdq-u8s8", + "format": "onnx", + "precision": "int8-conv-fp32-rest", + "entrypoint": "omnishotcut_conv_qdq_u8s8.onnx", + "files": [ + { + "path": "omnishotcut_conv_qdq_u8s8.onnx", + "bytes": 135617633, + "sha256": "c85fd2bbdd1fd81bde23acc69a4ff8a526a35ff3c6a83b32e4d7973579610a64" + } + ], + "metadata": { + "opset": 17, + "window_frames": 100, + "overlap_frames": 20, + "quantized_ops": "21 constant-weight Conv nodes", + "calibration": "seven fixed companion fixtures" + } + } + ], + "routes": [ + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-conv-qdq-u8s8", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": false, + "prepacking": true + }, + "notes": "The Conv-QDQ graph passed seven semantic fixtures and Rust ort rc.13 on Apple M2 Pro; the fp32 artifact remains available as a fallback." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-conv-qdq-u8s8", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 100, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": false, + "prepacking": true + }, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-conv-qdq-u8s8", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 100, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": false, + "prepacking": true + }, + "notes": "Promote only after the real-fixture Windows CI gate passes." + }, + { + "id": "onnx-cpu-linux-x86_64", + "artifact": "onnx-conv-qdq-u8s8", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 100, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": false, + "prepacking": true + }, + "notes": "Promote only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-conv-qdq-u8s8", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 100, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": false, + "prepacking": true + }, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + }, + { + "id": "onnx-fp32-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": true, + "prepacking": true + }, + "notes": "Verified FP32 fallback for semantic comparison and recovery from a graph-specific QDQ runtime issue." + }, + { + "id": "onnx-fp32-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; this host route has not been tested." + }, + { + "id": "onnx-fp32-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; promote only after the Windows real-fixture gate passes." + }, + { + "id": "onnx-fp32-linux-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; promote only after the Linux real-fixture gate passes." + }, + { + "id": "onnx-fp32-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "requirements": { + "minimum_os": null, + "minimum_runtime": "ONNX Runtime 1.28.0" + }, + "options": { + "memory_pattern": true, + "prepacking": true + }, + "notes": "Portable FP32 fallback; ONNX Runtime packaging remains unverified on this architecture." + } + ] +} diff --git a/realesrgan/card/LICENSE b/realesrgan/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..552a1eeaf01f4e7077013ed3496600c608f35202 --- /dev/null +++ b/realesrgan/card/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2021, Xintao Wang +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/realesrgan/release.v1.json b/realesrgan/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..ac64205b425e1c2230992da8c1789d4896bdffd5 --- /dev/null +++ b/realesrgan/release.v1.json @@ -0,0 +1,248 @@ +{ + "schema_version": 1, + "model": { + "id": "realesrgan", + "version": "1.0.0", + "display_name": "Real-ESRGAN", + "task": "image-super-resolution", + "description": "Four-times image and video-frame super-resolution" + }, + "license": { + "spdx": "BSD-3-Clause", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1519, + "sha256": "4a699ec4863d96a91fc265948a0c90033f7e8735d515524dcf3444736406e0c2" + } + ], + "notes": [ + "The selected Real-ESRGAN source and weights are BSD-3-Clause." + ] + }, + "provenance": { + "repository": "https://github.com/xinntao/Real-ESRGAN", + "revision": "v0.2.5.0", + "weights": [ + { + "id": "realesr-general-x4v3", + "source": "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth", + "bytes": 4885111, + "sha256": "8dc7edb9ac80ccdc30c3a5dca6616509367f05fbc184ad95b731f05bece96292" + }, + { + "id": "realesr-general-wdn-x4v3", + "source": "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-wdn-x4v3.pth", + "bytes": 4885111, + "sha256": "1641f8c4464b9f097c9fdda5589273713f67cf59f3d909e0bd688f0cee269dca" + } + ], + "notes": [ + "The release uses denoise strength zero and excludes GFPGAN." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "realesrgan-super-resolution", + "version": 1, + "inputs": [ + { + "name": "lr", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "Low-resolution RGB image" + } + ], + "outputs": [ + { + "name": "sr", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height4", + "width4" + ], + "range": [ + 0, + 1 + ], + "description": "Four-times RGB output" + } + ], + "preprocess": { + "color_space": "rgb", + "denoise_strength": 0, + "coreml_tile": [ + 320, + 180 + ], + "overlap_tiles": true + }, + "postprocess": { + "clamp": [ + 0, + 1 + ], + "scale": 4, + "preserve_aspect_ratio": true + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "x4v3_dn000.onnx", + "files": [ + { + "path": "x4v3_dn000.onnx", + "bytes": 4867412, + "sha256": "ab701aab75304268a2ada2c4f27a637357f689af719fe3f446f8918a7252c608" + } + ], + "metadata": { + "opset": 17, + "dynamic_shape": true, + "scale": 4 + } + }, + { + "id": "coreml-fp16-320x180", + "format": "coreml-package", + "precision": "fp16", + "entrypoint": "x4v3_dn000_fp16.mlpackage", + "files": [ + { + "path": "x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 56410, + "sha256": "12d1d86a3d7eb74bafdb8b87d12d108356a82af1eb3ef6ddb3b1fee26bf34682" + }, + { + "path": "x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 2437344, + "sha256": "7a6088b2ee537938f380b9049fae2b85dad57b251d047ab8f5afd256417838ec" + }, + { + "path": "x4v3_dn000_fp16.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "c1485ca7aa3829a11f4f403c099a0101ee3c7ce052d3726f8b3fb685aaac6f2c" + } + ], + "metadata": { + "fixed_shape": true, + "width": 320, + "height": 180, + "scale": 4 + } + } + ], + "routes": [ + { + "id": "coreml-macos-arm64", + "artifact": "coreml-fp16-320x180", + "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": "Compound parity, geometry, ANE placement and five quality cases passed on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "notes": "The dynamic ONNX graph and tiled host contract passed locally on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "Promote only after the real-fixture Windows CI 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 only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + } + ] +} diff --git a/realesrgan/x4v3_dn000.onnx b/realesrgan/x4v3_dn000.onnx new file mode 100644 index 0000000000000000000000000000000000000000..5689b75ed55604a9f4aeb9a676de4dcb7b6b69f2 --- /dev/null +++ b/realesrgan/x4v3_dn000.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab701aab75304268a2ada2c4f27a637357f689af719fe3f446f8918a7252c608 +size 4867412 diff --git a/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel b/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..90128ff659e67cdf98e3e21e06756f25a65c6495 --- /dev/null +++ b/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12d1d86a3d7eb74bafdb8b87d12d108356a82af1eb3ef6ddb3b1fee26bf34682 +size 56410 diff --git a/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..927b973683ae7aa5659940d38d12b5e25ac90aaf --- /dev/null +++ b/realesrgan/x4v3_dn000_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a6088b2ee537938f380b9049fae2b85dad57b251d047ab8f5afd256417838ec +size 2437344 diff --git a/realesrgan/x4v3_dn000_fp16.mlpackage/Manifest.json b/realesrgan/x4v3_dn000_fp16.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..c6e1821bc78d36bdd3b1ee5c8fa2274a5facef93 --- /dev/null +++ b/realesrgan/x4v3_dn000_fp16.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "DB5FD2A5-9CAE-4B9F-A45D-4722ADA4E708": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "F9B9D619-62BB-4D59-AB94-41A13BD207F6": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "F9B9D619-62BB-4D59-AB94-41A13BD207F6" +} diff --git a/rife/card/LICENSE b/rife/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d6c5c55f0fb8dd177b19e59993cf7da4ef010931 --- /dev/null +++ b/rife/card/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 hzwer + +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. diff --git a/rife/release.v1.json b/rife/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..47f3f2c6b04a5016f879ae899fffbc059b953f8e --- /dev/null +++ b/rife/release.v1.json @@ -0,0 +1,267 @@ +{ + "schema_version": 1, + "model": { + "id": "rife", + "version": "1.0.0", + "display_name": "RIFE", + "task": "frame-interpolation", + "description": "Arbitrary-timestep video frame interpolation with RIFE v4.25" + }, + "license": { + "spdx": "MIT", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1062, + "sha256": "7932fb49341512b959b1744a6d9cbb39e5a1ec89da438a34d0454d5d8df9fecd" + } + ], + "notes": [ + "The upstream README applies MIT to the linked v4.25 weight content." + ] + }, + "provenance": { + "repository": "https://github.com/hzwer/Practical-RIFE", + "revision": "17d8c7a1005b37f4c97bfee04e316aaec7fdc536", + "weights": [ + { + "id": "rife-v4.25", + "source": "https://drive.google.com/uc?id=1ZKjcbmt1hypiFprJPIKW0Tt0lr_2i7bg", + "bytes": 22919050, + "sha256": "e63d481b7ae5d4a4e6ad7ac5b410ff78f3bf7be3b51b2e38ca8152747abde5b4" + } + ], + "notes": [ + "The exporter replaces the upstream device-bound warp cache with a numerically equivalent portable implementation." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "rife-frame-interpolation", + "version": 1, + "inputs": [ + { + "name": "x", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 6, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "Two RGB frames concatenated by channel" + }, + { + "name": "t", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 1, + 1, + 1 + ], + "range": [ + 0, + 1 + ], + "description": "Interpolation time" + } + ], + "outputs": [ + { + "name": "mid", + "dtype": "f32", + "layout": "nchw", + "shape": [ + 1, + 3, + "height", + "width" + ], + "range": [ + 0, + 1 + ], + "description": "Interpolated RGB frame" + } + ], + "preprocess": { + "color_space": "rgb", + "pad_dimension_multiple": 128, + "pad_edges": [ + "right", + "bottom" + ], + "resize": false, + "concatenate": [ + "frame0", + "frame1" + ] + }, + "postprocess": { + "crop_to_source": true, + "clamp": [ + 0, + 1 + ], + "forbid_cross_shot": true + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "rife425.onnx", + "files": [ + { + "path": "rife425.onnx", + "bytes": 22803527, + "sha256": "a9416e6750f87edb21cd3f68b9e1708f9dd9c97bcff6eb51fe02dbb8b05e7309" + } + ], + "metadata": { + "opset": 17, + "dynamic_shape": true, + "dimension_multiple": 128 + } + }, + { + "id": "coreml-fp16-singleconcat-iofp16-1152x1920", + "format": "coreml-package", + "precision": "fp16", + "entrypoint": "rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage", + "files": [ + { + "path": "rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/model.mlmodel", + "bytes": 178579, + "sha256": "e9ac1504ef05e7976c7338093342f331768a82fe66cf8e5a7d164b70a40cdfbd" + }, + { + "path": "rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/weights/weight.bin", + "bytes": 20176616, + "sha256": "45dbeac9dc47f4696de0f106ff2fcf7689b879c2da31cc4ecca0ed04bf0b573e" + }, + { + "path": "rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Manifest.json", + "bytes": 617, + "sha256": "7c87878ec60723a648a852499fe34102b515add3a885838ffcad77e98b26a793" + } + ], + "metadata": { + "fixed_shape": true, + "width": 1152, + "height": 1920, + "external_io": "fp16", + "single_concat_last": true + } + } + ], + "routes": [ + { + "id": "coreml-macos-arm64", + "artifact": "coreml-fp16-singleconcat-iofp16-1152x1920", + "backend": "coreml", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 100, + "requirements": { + "minimum_os": "macOS 14", + "minimum_runtime": null + }, + "options": { + "compute_units": "cpu-and-gpu", + "external_io": "fp16", + "reshape_frequency": "infrequent", + "specialization_strategy": "fast-prediction", + "allow_low_precision_gpu": true + }, + "notes": "Verified on Apple M2 Pro: numerical parity, 315/315 GPU placement, performance, and the corrected portrait multi-metric quality gate passed." + }, + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "notes": "Verified on Apple M2 Pro with ONNX Runtime 1.27: dynamic-shape parity, corrected portrait quality, and local CPU execution passed." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "Promote only after the real-fixture Windows CI 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 only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + } + ] +} diff --git a/rife/rife425.onnx b/rife/rife425.onnx new file mode 100644 index 0000000000000000000000000000000000000000..d7d008ca83bfd1e87d18d92841603b8df5e69c1a --- /dev/null +++ b/rife/rife425.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9416e6750f87edb21cd3f68b9e1708f9dd9c97bcff6eb51fe02dbb8b05e7309 +size 22803527 diff --git a/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/model.mlmodel b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/model.mlmodel new file mode 100644 index 0000000000000000000000000000000000000000..30dba0fd3e40360f6a26f79a6354353e62197198 --- /dev/null +++ b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/model.mlmodel @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9ac1504ef05e7976c7338093342f331768a82fe66cf8e5a7d164b70a40cdfbd +size 178579 diff --git a/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/weights/weight.bin b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/weights/weight.bin new file mode 100644 index 0000000000000000000000000000000000000000..1857e05a8e2e3b099ebad1be0e111c4715177d4c --- /dev/null +++ b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Data/com.apple.CoreML/weights/weight.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45dbeac9dc47f4696de0f106ff2fcf7689b879c2da31cc4ecca0ed04bf0b573e +size 20176616 diff --git a/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Manifest.json b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..258d2ef2a68f6a2eb6bc7ddd434a5efbe43bf21f --- /dev/null +++ b/rife/rife425_fp16_singleconcat_iofp16_1152x1920.mlpackage/Manifest.json @@ -0,0 +1,18 @@ +{ + "fileFormatVersion": "1.0.0", + "itemInfoEntries": { + "00327FA7-0B2F-4A70-B641-35056053CE2D": { + "author": "com.apple.CoreML", + "description": "CoreML Model Weights", + "name": "weights", + "path": "com.apple.CoreML/weights" + }, + "311B69D9-3FEC-4D0E-8E84-7FAA7317B3CE": { + "author": "com.apple.CoreML", + "description": "CoreML Model Specification", + "name": "model.mlmodel", + "path": "com.apple.CoreML/model.mlmodel" + } + }, + "rootModelIdentifier": "311B69D9-3FEC-4D0E-8E84-7FAA7317B3CE" +} diff --git a/transnetv2/card/LICENSE b/transnetv2/card/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..db2b4bb607f82a65f969140f0c29facb57f7412d --- /dev/null +++ b/transnetv2/card/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Tomáš Souček + +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. diff --git a/transnetv2/release.v1.json b/transnetv2/release.v1.json new file mode 100644 index 0000000000000000000000000000000000000000..a69ca0003b28d68a06b39d70977eaa813e434c45 --- /dev/null +++ b/transnetv2/release.v1.json @@ -0,0 +1,198 @@ +{ + "schema_version": 1, + "model": { + "id": "transnetv2", + "version": "1.0.0", + "display_name": "TransNetV2", + "task": "shot-boundary-detection", + "description": "Shot-boundary probabilities for fixed 100-frame windows" + }, + "license": { + "spdx": "MIT", + "redistribution": "allowed", + "files": [ + { + "path": "card/LICENSE", + "bytes": 1072, + "sha256": "a8d7a056688ccedebe89f18fd60f1a47128df94cb82669cd02459934919cbb6f" + } + ], + "notes": [ + "The selected TransNetV2 source and upstream weights are MIT licensed." + ] + }, + "provenance": { + "repository": "https://github.com/soCzech/TransNetV2", + "revision": "85cef72af9a916bdfd7cc94a670c9cdfbf12d1ed", + "weights": [], + "notes": [ + "The upstream TensorFlow SavedModel was converted with the official convert_weights.py workflow.", + "The derived PyTorch checkpoint is 30509621 bytes with SHA-256 a03191f1d886181b2d51508475761e15fd5c865ebc44494db443058cc051c918." + ] + }, + "release": { + "state": "ready", + "repository": "openvalle/valle-models" + }, + "contract": { + "adapter": "transnetv2-shot-detection", + "version": 1, + "inputs": [ + { + "name": "frames", + "dtype": "u8", + "layout": "nthwc", + "shape": [ + 1, + 100, + 27, + 48, + 3 + ], + "range": [ + 0, + 255 + ], + "description": "RGB frame window" + } + ], + "outputs": [ + { + "name": "single_frame_pred", + "dtype": "f32", + "layout": "nt", + "shape": [ + 1, + 100 + ], + "range": [ + 0, + 1 + ], + "description": "Single-frame transition probability" + }, + { + "name": "all_frames_pred", + "dtype": "f32", + "layout": "nt", + "shape": [ + 1, + 100 + ], + "range": [ + 0, + 1 + ], + "description": "All-frame transition probability" + } + ], + "preprocess": { + "color_space": "rgb", + "resize": [ + 48, + 27 + ], + "window_frames": 100, + "step_frames": 50 + }, + "postprocess": { + "retain_frame_range": [ + 25, + 75 + ], + "threshold": 0.5 + } + }, + "artifacts": [ + { + "id": "onnx-fp32", + "format": "onnx", + "precision": "fp32", + "entrypoint": "transnetv2.onnx", + "files": [ + { + "path": "transnetv2.onnx", + "bytes": 31252665, + "sha256": "9fd29bbd84ea20fa72c9340f72ddd248c7ccb2b105289683b1061eed97df28f4" + } + ], + "metadata": { + "opset": 17, + "window_frames": 100, + "step_frames": 50 + } + } + ], + "routes": [ + { + "id": "onnx-cpu-macos-arm64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "aarch64" + ], + "status": "verified", + "priority": 10, + "notes": "TensorFlow, PyTorch, ONNX and the Rust proof-of-concept runner passed locally on Apple M2 Pro." + }, + { + "id": "onnx-cpu-macos-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "macos" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "The artifact is portable, but this host route has not been tested." + }, + { + "id": "onnx-cpu-windows-x86_64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "windows" + ], + "architectures": [ + "x86_64" + ], + "status": "unverified", + "priority": 10, + "notes": "Promote only after the real-fixture Windows CI 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 only after the real-fixture Linux CI gate passes." + }, + { + "id": "onnx-cpu-linux-aarch64", + "artifact": "onnx-fp32", + "backend": "onnx-cpu", + "platforms": [ + "linux" + ], + "architectures": [ + "aarch64" + ], + "status": "unverified", + "priority": 10, + "notes": "The graph is architecture-neutral; ONNX Runtime packaging remains unverified." + } + ] +} diff --git a/transnetv2/transnetv2.onnx b/transnetv2/transnetv2.onnx new file mode 100644 index 0000000000000000000000000000000000000000..1e248d18844bf43acdd29a217ce4ff56f86683c1 --- /dev/null +++ b/transnetv2/transnetv2.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fd29bbd84ea20fa72c9340f72ddd248c7ccb2b105289683b1061eed97df28f4 +size 31252665