sam-bha commited on
Commit
6497862
·
verified ·
1 Parent(s): 9914403

Official ONNX exports of Longpipe v0.0.16 (5 tiers, matting/base/face/flow, landmark mesh)

Browse files
Files changed (45) hide show
  1. LICENSE +21 -0
  2. README.md +140 -0
  3. WEIGHTS_LICENSE +37 -0
  4. onnx/landmark_mesh.onnx +3 -0
  5. onnx/large/face_landscape.onnx +3 -0
  6. onnx/large/face_portrait.onnx +3 -0
  7. onnx/large/flow_landscape.onnx +3 -0
  8. onnx/large/flow_portrait.onnx +3 -0
  9. onnx/large/matting_base_landscape.onnx +3 -0
  10. onnx/large/matting_base_portrait.onnx +3 -0
  11. onnx/large/matting_landscape.onnx +3 -0
  12. onnx/large/matting_portrait.onnx +3 -0
  13. onnx/manifest.json +1066 -0
  14. onnx/medium/face_landscape.onnx +3 -0
  15. onnx/medium/face_portrait.onnx +3 -0
  16. onnx/medium/flow_landscape.onnx +3 -0
  17. onnx/medium/flow_portrait.onnx +3 -0
  18. onnx/medium/matting_base_landscape.onnx +3 -0
  19. onnx/medium/matting_base_portrait.onnx +3 -0
  20. onnx/medium/matting_landscape.onnx +3 -0
  21. onnx/medium/matting_portrait.onnx +3 -0
  22. onnx/small/face_landscape.onnx +3 -0
  23. onnx/small/face_portrait.onnx +3 -0
  24. onnx/small/flow_landscape.onnx +3 -0
  25. onnx/small/flow_portrait.onnx +3 -0
  26. onnx/small/matting_base_landscape.onnx +3 -0
  27. onnx/small/matting_base_portrait.onnx +3 -0
  28. onnx/small/matting_landscape.onnx +3 -0
  29. onnx/small/matting_portrait.onnx +3 -0
  30. onnx/xl/face_landscape.onnx +3 -0
  31. onnx/xl/face_portrait.onnx +3 -0
  32. onnx/xl/flow_landscape.onnx +3 -0
  33. onnx/xl/flow_portrait.onnx +3 -0
  34. onnx/xl/matting_base_landscape.onnx +3 -0
  35. onnx/xl/matting_base_portrait.onnx +3 -0
  36. onnx/xl/matting_landscape.onnx +3 -0
  37. onnx/xl/matting_portrait.onnx +3 -0
  38. onnx/xs/face_landscape.onnx +3 -0
  39. onnx/xs/face_portrait.onnx +3 -0
  40. onnx/xs/flow_landscape.onnx +3 -0
  41. onnx/xs/flow_portrait.onnx +3 -0
  42. onnx/xs/matting_base_landscape.onnx +3 -0
  43. onnx/xs/matting_base_portrait.onnx +3 -0
  44. onnx/xs/matting_landscape.onnx +3 -0
  45. onnx/xs/matting_portrait.onnx +3 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sam Bhattacharyya
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: onnx
4
+ pipeline_tag: image-segmentation
5
+ tags:
6
+ - onnx
7
+ - matting
8
+ - portrait-matting
9
+ - background-removal
10
+ - virtual-background
11
+ - video-matting
12
+ - webrtc
13
+ - face-landmarks
14
+ - optical-flow
15
+ - mediapipe-alternative
16
+ ---
17
+
18
+ # Longpipe: real-time portrait matting (official ONNX)
19
+
20
+ Official ONNX exports of the [Longpipe](https://longpipe.dev) models: real-time person matting for
21
+ video calls and live video (virtual backgrounds, background blur), plus the face-keypoint, face-mesh
22
+ and optical-flow heads that power touch-up, auto-reframe and temporal stability.
23
+
24
+ Longpipe is primarily a browser SDK ([`npm install longpipe`](https://www.npmjs.com/package/longpipe),
25
+ [GitHub](https://github.com/sb2702/longpipe), [live demo](https://longpipe.dev/demo)) that runs these
26
+ networks as hand-written WebGPU/WebGL2 shaders. These ONNX files let you use the same trained weights
27
+ anywhere ONNX Runtime runs: Python, native apps, servers, mobile, or `onnxruntime-web`.
28
+
29
+ - **License:** MIT, code *and* weights. Training data provenance: [longpipe.dev/docs/licensing](https://longpipe.dev/docs/licensing).
30
+ - **Weights:** identical to the SDK's production tiers (SDK v0.0.16), exported directly from the PyTorch
31
+ training checkpoints. Every file is checked against PyTorch (max abs diff ≤ 7e-5, most ≤ 1e-6); see `onnx/manifest.json`.
32
+
33
+ ## Quality and speed
34
+
35
+ Average alpha error on the P3M-10K validation set (499 images): every Longpipe tier beats MediaPipe
36
+ on both MAE and IoU.
37
+
38
+ <img width="640" alt="Longpipe vs MediaPipe quality on P3M-10K" src="https://github.com/user-attachments/assets/c7044937-95af-496f-893a-a05a50d7c914" />
39
+
40
+ In the browser, the SDK's zero-copy GPU pipeline is faster than MediaPipe or BodyPix despite running
41
+ larger models (browser numbers; ONNX Runtime speed depends on your runtime and hardware):
42
+
43
+ <img width="640" alt="Longpipe vs MediaPipe and BodyPix speed" src="https://github.com/user-attachments/assets/ce658b8d-dc62-4d6b-90f8-cd62dfef2a59" />
44
+
45
+ ## Tiers
46
+
47
+ Five tiers trade quality for cost. Each is a small "base" network (EfficientNet-Lite encoder +
48
+ decoder) wrapped in a high-resolution U-Net wrapper that refines edges at canvas resolution.
49
+
50
+ | Tier | Canvas (landscape, H×W) | Base res | `matting` size | Intended hardware |
51
+ |---|---|---|---|---|
52
+ | `xs` | 240×384 | 80×128 | 3.6 MB | lowest-end devices |
53
+ | `small` | 224×384 | 112×192 | 3.6 MB | Chromebooks, low-end laptops |
54
+ | `medium` | 320×512 | 160×256 | 13.0 MB | mid-range |
55
+ | `large` | 400×640 | 160×256 | 14.2 MB | mid-range laptops |
56
+ | `xl` | 768×1280 | 192×320 | 29.2 MB | Apple Silicon, discrete GPUs |
57
+
58
+ Every model has a fixed input shape. Each tier ships a `landscape` and a `portrait` (H and W swapped)
59
+ version. Resize your frame to the canvas size (bilinear) before inference; the network does not need
60
+ the exact aspect ratio.
61
+
62
+ ## Files
63
+
64
+ ```
65
+ onnx/<tier>/matting_<orientation>.onnx canvas RGB -> refined alpha (what the SDK renders)
66
+ onnx/<tier>/matting_base_<orientation>.onnx base-res RGB -> alpha (faster, softer edges)
67
+ onnx/<tier>/face_<orientation>.onnx canvas RGB -> 5 face-keypoint heatmaps
68
+ onnx/<tier>/flow_<orientation>.onnx two canvas frames -> backward optical flow
69
+ onnx/landmark_mesh.onnx 256x256 face crop -> 478 face-mesh points (shared by all tiers)
70
+ onnx/manifest.json shapes, sha256, parity vs PyTorch
71
+ ```
72
+
73
+ **All inputs are RGB in [0, 1], NCHW float32, batch 1.** No mean/std normalization needed (the
74
+ landmark model's ImageNet normalization is built into the graph).
75
+
76
+ | Graph | Input | Output |
77
+ |---|---|---|
78
+ | `matting` | `rgb` [1,3,H,W] at canvas res | `alpha` [1,1,H,W], in [0,1] |
79
+ | `matting_base` | `rgb` [1,3,h,w] at base res | `alpha` [1,1,h,w], in [0,1] |
80
+ | `face` | `rgb` [1,3,H,W] at canvas res | `heatmaps` [1,5,h',w'], probabilities (sigmoid applied). Channels: left eye, right eye, nose, left mouth corner, right mouth corner. Grid is base/8 (`medium`, `large`, `xl`) or base/4 (`xs`, `small`) |
81
+ | `flow` | `frames` [1,6,H,W] at canvas res: **previous** frame in channels 0–2, **current** frame in 3–5 | `flow` [1,2,h',w'] **backward** flow (dx, dy): for each point on the current frame's grid, where it was in the previous frame, in base-resolution pixels. Grid is base/4 (base/2 on `xs`). Use it to warp the previous alpha onto the current frame |
82
+ | `landmark_mesh` | `rgb` [1,3,256,256] face crop | `landmarks` [1,478,2], (x, y) in crop coordinates, 0–1 |
83
+
84
+ ## Quick start (Python)
85
+
86
+ ```python
87
+ import numpy as np, onnxruntime as ort
88
+ from huggingface_hub import hf_hub_download
89
+ from PIL import Image
90
+
91
+ path = hf_hub_download("Longpipe/longpipe", "onnx/large/matting_landscape.onnx")
92
+ sess = ort.InferenceSession(path)
93
+ H, W = sess.get_inputs()[0].shape[2:] # 400, 640
94
+
95
+ frame = Image.open("me.jpg").convert("RGB")
96
+ x = np.asarray(frame.resize((W, H), Image.BILINEAR), np.float32).transpose(2, 0, 1)[None] / 255
97
+ alpha = sess.run(None, {"rgb": x})[0][0, 0] # [H, W] in [0, 1]
98
+
99
+ # composite onto a background at the original resolution
100
+ a = np.asarray(Image.fromarray((alpha * 255).astype(np.uint8)).resize(frame.size, Image.BILINEAR)) / 255
101
+ bg = np.zeros_like(np.asarray(frame), dtype=np.float32); bg[..., 1] = 200 # green
102
+ out = np.asarray(frame) * a[..., None] + bg * (1 - a[..., None])
103
+ Image.fromarray(out.astype(np.uint8)).save("composited.png")
104
+ ```
105
+
106
+ ## Face crop for the landmark model
107
+
108
+ The 478-point mesh model expects the crop the SDK makes from the `face` heatmaps:
109
+
110
+ 1. For each of the 5 heatmap channels, find the peak, then refine it with a soft-argmax over a 7×7
111
+ window (±3 cells) around the peak. Don't use the hard argmax alone; it jitters.
112
+ 2. Take the bounding box of the 5 refined points (in heatmap cells). The crop is a square centered
113
+ on that box, with side = 2.4 × max(box width, box height). Map the center by `(cell + 0.5) / grid size`.
114
+ 3. Skip the face if the weakest of the 5 peaks is below 0.15.
115
+ 4. Resample that square to 256×256 (bilinear) and run `landmark_mesh`.
116
+
117
+ ## Video: temporal stability (how the SDK uses `flow`)
118
+
119
+ The matting networks are static (one frame in, one alpha out). The SDK gets temporally stable mattes
120
+ from the flow head: each frame it predicts backward flow from the current frame into the previous one, warps
121
+ the previous *stabilized* alpha along that flow, and blends it with the fresh prediction through a
122
+ flow-gated stabilizer (gated on flow magnitude and divergence, to avoid ghosting at occlusion edges).
123
+ On lower tiers the matting network runs only every 2nd or 3rd frame and the held alpha is warped forward
124
+ in between. The face heatmaps get the same treatment. This blending logic lives in the SDK (TypeScript/WGSL),
125
+ not in these graphs. For a single-file temporal step, see the community port below.
126
+
127
+ ## Notes
128
+
129
+ - Exported with ONNX opset 17 (`large`: opset 18). Tested with ONNX Runtime 1.23 (CPU).
130
+ - Each `face` / `flow` / `matting` file contains its own copy of the tier's encoder. The SDK shares
131
+ one encoder pass across all heads; if you need that, run the SDK.
132
+ - Community port: [imbcmdth/longpipe-onnx](https://github.com/imbcmdth/longpipe-onnx) converted an
133
+ earlier release (v0.0.5) by reconstructing the weights from the SDK's packed format, and includes a
134
+ single-graph temporal step. Thanks! This repo is the official, current-weights export.
135
+
136
+ ## Links
137
+
138
+ - Website and docs: [longpipe.dev](https://longpipe.dev) · [architecture](https://longpipe.dev/docs/architecture)
139
+ - SDK: [github.com/sb2702/longpipe](https://github.com/sb2702/longpipe) · [npm](https://www.npmjs.com/package/longpipe)
140
+ - Built by the founder of [Vectorly](https://www.crunchbase.com/organization/vectorly) (effects SDK, acquired 2021). Also used for people-mode background removal in [katana.video/remove-background](https://katana.video/remove-background).
WEIGHTS_LICENSE ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Longpipe Model Weights License
2
+ ==============================
3
+
4
+ This license applies to the trained model weights distributed with Longpipe,
5
+ including the binary weight files served from cdn.longpipe.dev (e.g.
6
+ `model_xs.bin`, `model_small.bin`, `model_large.bin`, `model_xl.bin`, and
7
+ related `.bin` / `.f16.bin` files) and any copies or derivatives thereof.
8
+
9
+ The Longpipe SDK source code is licensed separately under the MIT License;
10
+ see `sdk/LICENSE`. This file covers the model weights only.
11
+
12
+ For documentation of the training data sources used to produce these weights,
13
+ see `docs/DATASET_PLAN.md`.
14
+
15
+ ----
16
+
17
+ MIT License
18
+
19
+ Copyright (c) 2026 Sam Bhattacharyya
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ of these model weights and associated files (the "Weights"), to deal in the
23
+ Weights without restriction, including without limitation the rights to use,
24
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
25
+ the Weights, and to permit persons to whom the Weights are furnished to do
26
+ so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in
29
+ all copies or substantial portions of the Weights.
30
+
31
+ THE WEIGHTS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ OUT OF OR IN CONNECTION WITH THE WEIGHTS OR THE USE OR OTHER DEALINGS IN THE
37
+ WEIGHTS.
onnx/landmark_mesh.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c75d93dad4b88d5aede7b7196b6bf11debdd9c897e96559af3fd11b12cc0b658
3
+ size 2712633
onnx/large/face_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:112099957459be9f847e1ab5c582d3701e6b4376e85ef74cf22020e86cca49e8
3
+ size 12653767
onnx/large/face_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ca7c787fdc27e5a067fab2a5a7961ba91a94bae507626defc2a90f5909d6281
3
+ size 12653767
onnx/large/flow_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72ea213e0ea13f72ff602c76b3ac0f2b43bbe09365721c29eb7bb6448e9afa67
3
+ size 12594955
onnx/large/flow_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d077e3accf7326cd10997418940b09757c434f5ff73ebf85c0c66ac8cc7216ee
3
+ size 12595050
onnx/large/matting_base_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8da775b30da026c24a8d838a6b7ef9f47eba1a4cbfb4dbf9e6be70d5eb2cabe3
3
+ size 12950755
onnx/large/matting_base_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5594e0091de56c40155286ba906465ccb25313b0a62cb7a1cf786e31df883878
3
+ size 12950755
onnx/large/matting_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dab0b195cd712477a1549d38465e28dcca4ad05efe407c9406f08caa6c6e4da
3
+ size 14209298
onnx/large/matting_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3333f3740bcbfc8054aec5919ee9d2388dea188c13b4a507b4d75e722af347b
3
+ size 14209298
onnx/manifest.json ADDED
@@ -0,0 +1,1066 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "xs": {
3
+ "matting_ckpt": "20260629-002-xs-b-face",
4
+ "flow_ckpt": "checkpoints_flow_wrap_xs",
5
+ "landscape": {
6
+ "canvas_hw": [
7
+ 240,
8
+ 384
9
+ ],
10
+ "base_hw": [
11
+ 80,
12
+ 128
13
+ ],
14
+ "matting": {
15
+ "file": "xs/matting_landscape.onnx",
16
+ "exporter": "torchscript",
17
+ "inputs": {
18
+ "rgb": [
19
+ 1,
20
+ 3,
21
+ 240,
22
+ 384
23
+ ]
24
+ },
25
+ "outputs": {
26
+ "alpha": [
27
+ 1,
28
+ 1,
29
+ 240,
30
+ 384
31
+ ]
32
+ },
33
+ "max_abs_diff_vs_pytorch": 8.138812290781061e-08,
34
+ "bytes": 3613647,
35
+ "sha256": "75749759daa4d7e839e8aa189ce6a4e95edc72253b1f5028e833455ebae2f792"
36
+ },
37
+ "matting_base": {
38
+ "file": "xs/matting_base_landscape.onnx",
39
+ "exporter": "torchscript",
40
+ "inputs": {
41
+ "rgb": [
42
+ 1,
43
+ 3,
44
+ 80,
45
+ 128
46
+ ]
47
+ },
48
+ "outputs": {
49
+ "alpha": [
50
+ 1,
51
+ 1,
52
+ 80,
53
+ 128
54
+ ]
55
+ },
56
+ "max_abs_diff_vs_pytorch": 1.1925040698192353e-16,
57
+ "bytes": 3603286,
58
+ "sha256": "34ca5d3b018722987878548399c40dcfd3ae1657b0d0682d4113b05312c93583"
59
+ },
60
+ "face": {
61
+ "file": "xs/face_landscape.onnx",
62
+ "exporter": "torchscript",
63
+ "inputs": {
64
+ "rgb": [
65
+ 1,
66
+ 3,
67
+ 240,
68
+ 384
69
+ ]
70
+ },
71
+ "outputs": {
72
+ "heatmaps": [
73
+ 1,
74
+ 5,
75
+ 20,
76
+ 32
77
+ ]
78
+ },
79
+ "max_abs_diff_vs_pytorch": 9.592622518539429e-08,
80
+ "bytes": 3275353,
81
+ "sha256": "6c529e5b10492cffadf31b3bdb7caff89195e83cf81d8b592a18e91bae3687bb"
82
+ },
83
+ "flow": {
84
+ "file": "xs/flow_landscape.onnx",
85
+ "exporter": "torchscript",
86
+ "inputs": {
87
+ "frames": [
88
+ 1,
89
+ 6,
90
+ 240,
91
+ 384
92
+ ]
93
+ },
94
+ "outputs": {
95
+ "flow": [
96
+ 1,
97
+ 2,
98
+ 40,
99
+ 64
100
+ ]
101
+ },
102
+ "max_abs_diff_vs_pytorch": 2.193450927734375e-05,
103
+ "bytes": 3202933,
104
+ "sha256": "21e498f6c2b0b47d27b7a1d17f96e524cbfcb589652bb175f737d652f8049ffe"
105
+ }
106
+ },
107
+ "portrait": {
108
+ "canvas_hw": [
109
+ 384,
110
+ 240
111
+ ],
112
+ "base_hw": [
113
+ 128,
114
+ 80
115
+ ],
116
+ "matting": {
117
+ "file": "xs/matting_portrait.onnx",
118
+ "exporter": "torchscript",
119
+ "inputs": {
120
+ "rgb": [
121
+ 1,
122
+ 3,
123
+ 384,
124
+ 240
125
+ ]
126
+ },
127
+ "outputs": {
128
+ "alpha": [
129
+ 1,
130
+ 1,
131
+ 384,
132
+ 240
133
+ ]
134
+ },
135
+ "max_abs_diff_vs_pytorch": 1.0857446142154004e-07,
136
+ "bytes": 3613647,
137
+ "sha256": "ada077894985240f37df9914e220eee963eefb0b375659713a664f0816084612"
138
+ },
139
+ "matting_base": {
140
+ "file": "xs/matting_base_portrait.onnx",
141
+ "exporter": "torchscript",
142
+ "inputs": {
143
+ "rgb": [
144
+ 1,
145
+ 3,
146
+ 128,
147
+ 80
148
+ ]
149
+ },
150
+ "outputs": {
151
+ "alpha": [
152
+ 1,
153
+ 1,
154
+ 128,
155
+ 80
156
+ ]
157
+ },
158
+ "max_abs_diff_vs_pytorch": 2.8631034459197476e-16,
159
+ "bytes": 3603286,
160
+ "sha256": "14845c6f670ee9e4c7c77d8e669488f1376904ff426fb7be30f19d20054d2513"
161
+ },
162
+ "face": {
163
+ "file": "xs/face_portrait.onnx",
164
+ "exporter": "torchscript",
165
+ "inputs": {
166
+ "rgb": [
167
+ 1,
168
+ 3,
169
+ 384,
170
+ 240
171
+ ]
172
+ },
173
+ "outputs": {
174
+ "heatmaps": [
175
+ 1,
176
+ 5,
177
+ 32,
178
+ 20
179
+ ]
180
+ },
181
+ "max_abs_diff_vs_pytorch": 1.1920928955078125e-07,
182
+ "bytes": 3275353,
183
+ "sha256": "f5d07ff35d0bb30eb46e45b2e3885667b9b53095a0198fdc0f31caf144faa25d"
184
+ },
185
+ "flow": {
186
+ "file": "xs/flow_portrait.onnx",
187
+ "exporter": "torchscript",
188
+ "inputs": {
189
+ "frames": [
190
+ 1,
191
+ 6,
192
+ 384,
193
+ 240
194
+ ]
195
+ },
196
+ "outputs": {
197
+ "flow": [
198
+ 1,
199
+ 2,
200
+ 64,
201
+ 40
202
+ ]
203
+ },
204
+ "max_abs_diff_vs_pytorch": 3.7670135498046875e-05,
205
+ "bytes": 3202933,
206
+ "sha256": "d0762c907d1c75fd11595e7f07f65731e7349f28740acfc2dc24987f92246b6e"
207
+ }
208
+ }
209
+ },
210
+ "small": {
211
+ "matting_ckpt": "20260702-001-small-hr-a-face",
212
+ "flow_ckpt": "checkpoints_flow_wrap_small",
213
+ "landscape": {
214
+ "canvas_hw": [
215
+ 224,
216
+ 384
217
+ ],
218
+ "base_hw": [
219
+ 112,
220
+ 192
221
+ ],
222
+ "matting": {
223
+ "file": "small/matting_landscape.onnx",
224
+ "exporter": "torchscript",
225
+ "inputs": {
226
+ "rgb": [
227
+ 1,
228
+ 3,
229
+ 224,
230
+ 384
231
+ ]
232
+ },
233
+ "outputs": {
234
+ "alpha": [
235
+ 1,
236
+ 1,
237
+ 224,
238
+ 384
239
+ ]
240
+ },
241
+ "max_abs_diff_vs_pytorch": 1.1164939905938809e-07,
242
+ "bytes": 3613647,
243
+ "sha256": "e6aca89d9df1cfe26670693eaf138d615b3b74979fe613f8f0195e9f5da14a90"
244
+ },
245
+ "matting_base": {
246
+ "file": "small/matting_base_landscape.onnx",
247
+ "exporter": "torchscript",
248
+ "inputs": {
249
+ "rgb": [
250
+ 1,
251
+ 3,
252
+ 112,
253
+ 192
254
+ ]
255
+ },
256
+ "outputs": {
257
+ "alpha": [
258
+ 1,
259
+ 1,
260
+ 112,
261
+ 192
262
+ ]
263
+ },
264
+ "max_abs_diff_vs_pytorch": 7.864907710409317e-18,
265
+ "bytes": 3603286,
266
+ "sha256": "f0548e3fd053a39a24ac66f8f215b7df4a94e18f3c3136ea11250c178a581afe"
267
+ },
268
+ "face": {
269
+ "file": "small/face_landscape.onnx",
270
+ "exporter": "torchscript",
271
+ "inputs": {
272
+ "rgb": [
273
+ 1,
274
+ 3,
275
+ 224,
276
+ 384
277
+ ]
278
+ },
279
+ "outputs": {
280
+ "heatmaps": [
281
+ 1,
282
+ 5,
283
+ 28,
284
+ 48
285
+ ]
286
+ },
287
+ "max_abs_diff_vs_pytorch": 1.0058283805847168e-07,
288
+ "bytes": 3275353,
289
+ "sha256": "5f681db132c9b1ec8df31a0db608d0a503608ac554bddcf43be389b4695b79c2"
290
+ },
291
+ "flow": {
292
+ "file": "small/flow_landscape.onnx",
293
+ "exporter": "torchscript",
294
+ "inputs": {
295
+ "frames": [
296
+ 1,
297
+ 6,
298
+ 224,
299
+ 384
300
+ ]
301
+ },
302
+ "outputs": {
303
+ "flow": [
304
+ 1,
305
+ 2,
306
+ 28,
307
+ 48
308
+ ]
309
+ },
310
+ "max_abs_diff_vs_pytorch": 2.956390380859375e-05,
311
+ "bytes": 3138152,
312
+ "sha256": "d115ed1031bd720b094bd11b2f48f69388e1a5267d2f1e1a9b5348cd496c5c13"
313
+ }
314
+ },
315
+ "portrait": {
316
+ "canvas_hw": [
317
+ 384,
318
+ 224
319
+ ],
320
+ "base_hw": [
321
+ 192,
322
+ 112
323
+ ],
324
+ "matting": {
325
+ "file": "small/matting_portrait.onnx",
326
+ "exporter": "torchscript",
327
+ "inputs": {
328
+ "rgb": [
329
+ 1,
330
+ 3,
331
+ 384,
332
+ 224
333
+ ]
334
+ },
335
+ "outputs": {
336
+ "alpha": [
337
+ 1,
338
+ 1,
339
+ 384,
340
+ 224
341
+ ]
342
+ },
343
+ "max_abs_diff_vs_pytorch": 2.1955929696559906e-07,
344
+ "bytes": 3613647,
345
+ "sha256": "cd71824117a22b36a3a9f387caaff1903d10d8f32cda35ddd8011d0d00cf367a"
346
+ },
347
+ "matting_base": {
348
+ "file": "small/matting_base_portrait.onnx",
349
+ "exporter": "torchscript",
350
+ "inputs": {
351
+ "rgb": [
352
+ 1,
353
+ 3,
354
+ 192,
355
+ 112
356
+ ]
357
+ },
358
+ "outputs": {
359
+ "alpha": [
360
+ 1,
361
+ 1,
362
+ 192,
363
+ 112
364
+ ]
365
+ },
366
+ "max_abs_diff_vs_pytorch": 3.3965339323374904e-15,
367
+ "bytes": 3603286,
368
+ "sha256": "fcd7557e9958895582e86d11dc82e42b2087781c8eaf780ee13fadee74ada7b6"
369
+ },
370
+ "face": {
371
+ "file": "small/face_portrait.onnx",
372
+ "exporter": "torchscript",
373
+ "inputs": {
374
+ "rgb": [
375
+ 1,
376
+ 3,
377
+ 384,
378
+ 224
379
+ ]
380
+ },
381
+ "outputs": {
382
+ "heatmaps": [
383
+ 1,
384
+ 5,
385
+ 48,
386
+ 28
387
+ ]
388
+ },
389
+ "max_abs_diff_vs_pytorch": 9.778887033462524e-08,
390
+ "bytes": 3275353,
391
+ "sha256": "83c39bdc7f89d7fa13bf0196fab368b591ea7392e08ade504096f78d45d76c15"
392
+ },
393
+ "flow": {
394
+ "file": "small/flow_portrait.onnx",
395
+ "exporter": "torchscript",
396
+ "inputs": {
397
+ "frames": [
398
+ 1,
399
+ 6,
400
+ 384,
401
+ 224
402
+ ]
403
+ },
404
+ "outputs": {
405
+ "flow": [
406
+ 1,
407
+ 2,
408
+ 48,
409
+ 28
410
+ ]
411
+ },
412
+ "max_abs_diff_vs_pytorch": 2.0623207092285156e-05,
413
+ "bytes": 3138152,
414
+ "sha256": "1dcd8ead03d68aa04dc2f512f7b50026c10618640742f84c902509858768c1dd"
415
+ }
416
+ }
417
+ },
418
+ "medium": {
419
+ "matting_ckpt": "20260708-001-medium-hr-a-face",
420
+ "flow_ckpt": "checkpoints_flow_wrap_medium",
421
+ "landscape": {
422
+ "canvas_hw": [
423
+ 320,
424
+ 512
425
+ ],
426
+ "base_hw": [
427
+ 160,
428
+ 256
429
+ ],
430
+ "matting": {
431
+ "file": "medium/matting_landscape.onnx",
432
+ "exporter": "torchscript",
433
+ "inputs": {
434
+ "rgb": [
435
+ 1,
436
+ 3,
437
+ 320,
438
+ 512
439
+ ]
440
+ },
441
+ "outputs": {
442
+ "alpha": [
443
+ 1,
444
+ 1,
445
+ 320,
446
+ 512
447
+ ]
448
+ },
449
+ "max_abs_diff_vs_pytorch": 6.812810897827148e-05,
450
+ "bytes": 12959999,
451
+ "sha256": "a0b385d6690b2d08c1e393ff2258b6f3b3065d8bee0f1ff0f0ce2d68a0ce0cf7"
452
+ },
453
+ "matting_base": {
454
+ "file": "medium/matting_base_landscape.onnx",
455
+ "exporter": "torchscript",
456
+ "inputs": {
457
+ "rgb": [
458
+ 1,
459
+ 3,
460
+ 160,
461
+ 256
462
+ ]
463
+ },
464
+ "outputs": {
465
+ "alpha": [
466
+ 1,
467
+ 1,
468
+ 160,
469
+ 256
470
+ ]
471
+ },
472
+ "max_abs_diff_vs_pytorch": 8.761882781982422e-06,
473
+ "bytes": 12950755,
474
+ "sha256": "38df4ae7e9897f601daf27abaa077705add8a95cb8ab4daab2beb686a3c519a1"
475
+ },
476
+ "face": {
477
+ "file": "medium/face_landscape.onnx",
478
+ "exporter": "torchscript",
479
+ "inputs": {
480
+ "rgb": [
481
+ 1,
482
+ 3,
483
+ 320,
484
+ 512
485
+ ]
486
+ },
487
+ "outputs": {
488
+ "heatmaps": [
489
+ 1,
490
+ 5,
491
+ 20,
492
+ 32
493
+ ]
494
+ },
495
+ "max_abs_diff_vs_pytorch": 2.086162567138672e-07,
496
+ "bytes": 12484198,
497
+ "sha256": "4bdfbdbf6a1257540dddaeae5e31fd8b795a80c6c3223fdf28feaf21472232ec"
498
+ },
499
+ "flow": {
500
+ "file": "medium/flow_landscape.onnx",
501
+ "exporter": "torchscript",
502
+ "inputs": {
503
+ "frames": [
504
+ 1,
505
+ 6,
506
+ 320,
507
+ 512
508
+ ]
509
+ },
510
+ "outputs": {
511
+ "flow": [
512
+ 1,
513
+ 2,
514
+ 40,
515
+ 64
516
+ ]
517
+ },
518
+ "max_abs_diff_vs_pytorch": 1.430511474609375e-05,
519
+ "bytes": 12456980,
520
+ "sha256": "e0d1a1fd1c3f1a29582e17a93712525d84b3919c8f87148d723f026e6e5f7cbb"
521
+ }
522
+ },
523
+ "portrait": {
524
+ "canvas_hw": [
525
+ 512,
526
+ 320
527
+ ],
528
+ "base_hw": [
529
+ 256,
530
+ 160
531
+ ],
532
+ "matting": {
533
+ "file": "medium/matting_portrait.onnx",
534
+ "exporter": "torchscript",
535
+ "inputs": {
536
+ "rgb": [
537
+ 1,
538
+ 3,
539
+ 512,
540
+ 320
541
+ ]
542
+ },
543
+ "outputs": {
544
+ "alpha": [
545
+ 1,
546
+ 1,
547
+ 512,
548
+ 320
549
+ ]
550
+ },
551
+ "max_abs_diff_vs_pytorch": 3.692507743835449e-05,
552
+ "bytes": 12959999,
553
+ "sha256": "d8af2e196920fc9d4ac39337f57ef92bcde94248096773d921870c8a36d9fb76"
554
+ },
555
+ "matting_base": {
556
+ "file": "medium/matting_base_portrait.onnx",
557
+ "exporter": "torchscript",
558
+ "inputs": {
559
+ "rgb": [
560
+ 1,
561
+ 3,
562
+ 256,
563
+ 160
564
+ ]
565
+ },
566
+ "outputs": {
567
+ "alpha": [
568
+ 1,
569
+ 1,
570
+ 256,
571
+ 160
572
+ ]
573
+ },
574
+ "max_abs_diff_vs_pytorch": 1.7315149307250977e-05,
575
+ "bytes": 12950755,
576
+ "sha256": "1a0cbcb32c631f0dd7f6a6f5f4bec92f6d81560dce3c8f987f0e08b1b30191df"
577
+ },
578
+ "face": {
579
+ "file": "medium/face_portrait.onnx",
580
+ "exporter": "torchscript",
581
+ "inputs": {
582
+ "rgb": [
583
+ 1,
584
+ 3,
585
+ 512,
586
+ 320
587
+ ]
588
+ },
589
+ "outputs": {
590
+ "heatmaps": [
591
+ 1,
592
+ 5,
593
+ 32,
594
+ 20
595
+ ]
596
+ },
597
+ "max_abs_diff_vs_pytorch": 2.5704503059387207e-07,
598
+ "bytes": 12484198,
599
+ "sha256": "077868af032c98c38f5389f80e7a3e02af16fd812148b694b96cf6187e656309"
600
+ },
601
+ "flow": {
602
+ "file": "medium/flow_portrait.onnx",
603
+ "exporter": "torchscript",
604
+ "inputs": {
605
+ "frames": [
606
+ 1,
607
+ 6,
608
+ 512,
609
+ 320
610
+ ]
611
+ },
612
+ "outputs": {
613
+ "flow": [
614
+ 1,
615
+ 2,
616
+ 64,
617
+ 40
618
+ ]
619
+ },
620
+ "max_abs_diff_vs_pytorch": 2.4318695068359375e-05,
621
+ "bytes": 12456980,
622
+ "sha256": "ba6509d098c2a9e66681864741aa58bcbe8dd980803ae291ba1df65f5a157114"
623
+ }
624
+ }
625
+ },
626
+ "large": {
627
+ "matting_ckpt": "20260709-001-large-hr-d-face",
628
+ "flow_ckpt": "checkpoints_flow_wrap_large",
629
+ "landscape": {
630
+ "canvas_hw": [
631
+ 400,
632
+ 640
633
+ ],
634
+ "base_hw": [
635
+ 160,
636
+ 256
637
+ ],
638
+ "matting": {
639
+ "file": "large/matting_landscape.onnx",
640
+ "exporter": "dynamo",
641
+ "inputs": {
642
+ "rgb": [
643
+ 1,
644
+ 3,
645
+ 400,
646
+ 640
647
+ ]
648
+ },
649
+ "outputs": {
650
+ "alpha": [
651
+ 1,
652
+ 1,
653
+ 400,
654
+ 640
655
+ ]
656
+ },
657
+ "max_abs_diff_vs_pytorch": 7.003545761108398e-07,
658
+ "bytes": 14209298,
659
+ "sha256": "2dab0b195cd712477a1549d38465e28dcca4ad05efe407c9406f08caa6c6e4da"
660
+ },
661
+ "matting_base": {
662
+ "file": "large/matting_base_landscape.onnx",
663
+ "exporter": "torchscript",
664
+ "inputs": {
665
+ "rgb": [
666
+ 1,
667
+ 3,
668
+ 160,
669
+ 256
670
+ ]
671
+ },
672
+ "outputs": {
673
+ "alpha": [
674
+ 1,
675
+ 1,
676
+ 160,
677
+ 256
678
+ ]
679
+ },
680
+ "max_abs_diff_vs_pytorch": 4.862338635362924e-16,
681
+ "bytes": 12950755,
682
+ "sha256": "8da775b30da026c24a8d838a6b7ef9f47eba1a4cbfb4dbf9e6be70d5eb2cabe3"
683
+ },
684
+ "face": {
685
+ "file": "large/face_landscape.onnx",
686
+ "exporter": "dynamo",
687
+ "inputs": {
688
+ "rgb": [
689
+ 1,
690
+ 3,
691
+ 400,
692
+ 640
693
+ ]
694
+ },
695
+ "outputs": {
696
+ "heatmaps": [
697
+ 1,
698
+ 5,
699
+ 20,
700
+ 32
701
+ ]
702
+ },
703
+ "max_abs_diff_vs_pytorch": 1.0803341865539551e-07,
704
+ "bytes": 12653767,
705
+ "sha256": "112099957459be9f847e1ab5c582d3701e6b4376e85ef74cf22020e86cca49e8"
706
+ },
707
+ "flow": {
708
+ "file": "large/flow_landscape.onnx",
709
+ "exporter": "dynamo",
710
+ "inputs": {
711
+ "frames": [
712
+ 1,
713
+ 6,
714
+ 400,
715
+ 640
716
+ ]
717
+ },
718
+ "outputs": {
719
+ "flow": [
720
+ 1,
721
+ 2,
722
+ 40,
723
+ 64
724
+ ]
725
+ },
726
+ "max_abs_diff_vs_pytorch": 1.049041748046875e-05,
727
+ "bytes": 12594955,
728
+ "sha256": "72ea213e0ea13f72ff602c76b3ac0f2b43bbe09365721c29eb7bb6448e9afa67"
729
+ }
730
+ },
731
+ "portrait": {
732
+ "canvas_hw": [
733
+ 640,
734
+ 400
735
+ ],
736
+ "base_hw": [
737
+ 256,
738
+ 160
739
+ ],
740
+ "matting": {
741
+ "file": "large/matting_portrait.onnx",
742
+ "exporter": "dynamo",
743
+ "inputs": {
744
+ "rgb": [
745
+ 1,
746
+ 3,
747
+ 640,
748
+ 400
749
+ ]
750
+ },
751
+ "outputs": {
752
+ "alpha": [
753
+ 1,
754
+ 1,
755
+ 640,
756
+ 400
757
+ ]
758
+ },
759
+ "max_abs_diff_vs_pytorch": 6.92903995513916e-07,
760
+ "bytes": 14209298,
761
+ "sha256": "c3333f3740bcbfc8054aec5919ee9d2388dea188c13b4a507b4d75e722af347b"
762
+ },
763
+ "matting_base": {
764
+ "file": "large/matting_base_portrait.onnx",
765
+ "exporter": "torchscript",
766
+ "inputs": {
767
+ "rgb": [
768
+ 1,
769
+ 3,
770
+ 256,
771
+ 160
772
+ ]
773
+ },
774
+ "outputs": {
775
+ "alpha": [
776
+ 1,
777
+ 1,
778
+ 256,
779
+ 160
780
+ ]
781
+ },
782
+ "max_abs_diff_vs_pytorch": 7.343292236328125e-05,
783
+ "bytes": 12950755,
784
+ "sha256": "5594e0091de56c40155286ba906465ccb25313b0a62cb7a1cf786e31df883878"
785
+ },
786
+ "face": {
787
+ "file": "large/face_portrait.onnx",
788
+ "exporter": "dynamo",
789
+ "inputs": {
790
+ "rgb": [
791
+ 1,
792
+ 3,
793
+ 640,
794
+ 400
795
+ ]
796
+ },
797
+ "outputs": {
798
+ "heatmaps": [
799
+ 1,
800
+ 5,
801
+ 32,
802
+ 20
803
+ ]
804
+ },
805
+ "max_abs_diff_vs_pytorch": 1.0803341865539551e-07,
806
+ "bytes": 12653767,
807
+ "sha256": "3ca7c787fdc27e5a067fab2a5a7961ba91a94bae507626defc2a90f5909d6281"
808
+ },
809
+ "flow": {
810
+ "file": "large/flow_portrait.onnx",
811
+ "exporter": "dynamo",
812
+ "inputs": {
813
+ "frames": [
814
+ 1,
815
+ 6,
816
+ 640,
817
+ 400
818
+ ]
819
+ },
820
+ "outputs": {
821
+ "flow": [
822
+ 1,
823
+ 2,
824
+ 64,
825
+ 40
826
+ ]
827
+ },
828
+ "max_abs_diff_vs_pytorch": 1.1920928955078125e-05,
829
+ "bytes": 12595050,
830
+ "sha256": "d077e3accf7326cd10997418940b09757c434f5ff73ebf85c0c66ac8cc7216ee"
831
+ }
832
+ }
833
+ },
834
+ "xl": {
835
+ "matting_ckpt": "20260711-001-xl-hr-face",
836
+ "flow_ckpt": "checkpoints_flow_wrap_xl",
837
+ "landscape": {
838
+ "canvas_hw": [
839
+ 768,
840
+ 1280
841
+ ],
842
+ "base_hw": [
843
+ 192,
844
+ 320
845
+ ],
846
+ "matting": {
847
+ "file": "xl/matting_landscape.onnx",
848
+ "exporter": "torchscript",
849
+ "inputs": {
850
+ "rgb": [
851
+ 1,
852
+ 3,
853
+ 768,
854
+ 1280
855
+ ]
856
+ },
857
+ "outputs": {
858
+ "alpha": [
859
+ 1,
860
+ 1,
861
+ 768,
862
+ 1280
863
+ ]
864
+ },
865
+ "max_abs_diff_vs_pytorch": 1.6298145055770874e-07,
866
+ "bytes": 29198204,
867
+ "sha256": "9ee02f5a73df90d5b62af667eaf57ca85a4065e7fe676e845d4a28d410f56daa"
868
+ },
869
+ "matting_base": {
870
+ "file": "xl/matting_base_landscape.onnx",
871
+ "exporter": "torchscript",
872
+ "inputs": {
873
+ "rgb": [
874
+ 1,
875
+ 3,
876
+ 192,
877
+ 320
878
+ ]
879
+ },
880
+ "outputs": {
881
+ "alpha": [
882
+ 1,
883
+ 1,
884
+ 192,
885
+ 320
886
+ ]
887
+ },
888
+ "max_abs_diff_vs_pytorch": 1.0624031432371339e-07,
889
+ "bytes": 29185231,
890
+ "sha256": "4fcf2f01b533a7eb9d30dac3b1c6512b103f2823905f6436438bac6267f6dd93"
891
+ },
892
+ "face": {
893
+ "file": "xl/face_landscape.onnx",
894
+ "exporter": "torchscript",
895
+ "inputs": {
896
+ "rgb": [
897
+ 1,
898
+ 3,
899
+ 768,
900
+ 1280
901
+ ]
902
+ },
903
+ "outputs": {
904
+ "heatmaps": [
905
+ 1,
906
+ 5,
907
+ 24,
908
+ 40
909
+ ]
910
+ },
911
+ "max_abs_diff_vs_pytorch": 1.9371509552001953e-07,
912
+ "bytes": 26354120,
913
+ "sha256": "fc1264f9b3eea5d3edb6ad775d825746c400384fcf65aac8e30d383fcdee533e"
914
+ },
915
+ "flow": {
916
+ "file": "xl/flow_landscape.onnx",
917
+ "exporter": "torchscript",
918
+ "inputs": {
919
+ "frames": [
920
+ 1,
921
+ 6,
922
+ 768,
923
+ 1280
924
+ ]
925
+ },
926
+ "outputs": {
927
+ "flow": [
928
+ 1,
929
+ 2,
930
+ 48,
931
+ 80
932
+ ]
933
+ },
934
+ "max_abs_diff_vs_pytorch": 1.1682510375976562e-05,
935
+ "bytes": 26353870,
936
+ "sha256": "7991f55d4d6ef48b27a47e4f647fda461598085694963b1401b7ff2e57bbea03"
937
+ }
938
+ },
939
+ "portrait": {
940
+ "canvas_hw": [
941
+ 1280,
942
+ 768
943
+ ],
944
+ "base_hw": [
945
+ 320,
946
+ 192
947
+ ],
948
+ "matting": {
949
+ "file": "xl/matting_portrait.onnx",
950
+ "exporter": "torchscript",
951
+ "inputs": {
952
+ "rgb": [
953
+ 1,
954
+ 3,
955
+ 1280,
956
+ 768
957
+ ]
958
+ },
959
+ "outputs": {
960
+ "alpha": [
961
+ 1,
962
+ 1,
963
+ 1280,
964
+ 768
965
+ ]
966
+ },
967
+ "max_abs_diff_vs_pytorch": 4.0978193283081055e-07,
968
+ "bytes": 29198204,
969
+ "sha256": "4dd089eb2d4257f055fb782eda71cf7339a996c517cc73fb48a996bdc7261771"
970
+ },
971
+ "matting_base": {
972
+ "file": "xl/matting_base_portrait.onnx",
973
+ "exporter": "torchscript",
974
+ "inputs": {
975
+ "rgb": [
976
+ 1,
977
+ 3,
978
+ 320,
979
+ 192
980
+ ]
981
+ },
982
+ "outputs": {
983
+ "alpha": [
984
+ 1,
985
+ 1,
986
+ 320,
987
+ 192
988
+ ]
989
+ },
990
+ "max_abs_diff_vs_pytorch": 1.331018779637816e-07,
991
+ "bytes": 29185231,
992
+ "sha256": "57b5f2514b8f7c794a43e79ebef9c5807a24126c5827a8ed2c0aa18ac29d0e7d"
993
+ },
994
+ "face": {
995
+ "file": "xl/face_portrait.onnx",
996
+ "exporter": "torchscript",
997
+ "inputs": {
998
+ "rgb": [
999
+ 1,
1000
+ 3,
1001
+ 1280,
1002
+ 768
1003
+ ]
1004
+ },
1005
+ "outputs": {
1006
+ "heatmaps": [
1007
+ 1,
1008
+ 5,
1009
+ 40,
1010
+ 24
1011
+ ]
1012
+ },
1013
+ "max_abs_diff_vs_pytorch": 2.384185791015625e-07,
1014
+ "bytes": 26354120,
1015
+ "sha256": "c75ca1383259d1c4be64412bc849c2fa3560ab1e17758eb68b2f3e4af2c06fd0"
1016
+ },
1017
+ "flow": {
1018
+ "file": "xl/flow_portrait.onnx",
1019
+ "exporter": "torchscript",
1020
+ "inputs": {
1021
+ "frames": [
1022
+ 1,
1023
+ 6,
1024
+ 1280,
1025
+ 768
1026
+ ]
1027
+ },
1028
+ "outputs": {
1029
+ "flow": [
1030
+ 1,
1031
+ 2,
1032
+ 80,
1033
+ 48
1034
+ ]
1035
+ },
1036
+ "max_abs_diff_vs_pytorch": 1.3589859008789062e-05,
1037
+ "bytes": 26353870,
1038
+ "sha256": "4b3bb3f460343f82af55b4d30c5103b4aa8d6b9e15c8670468f48af8eff92575"
1039
+ }
1040
+ }
1041
+ },
1042
+ "shared": {
1043
+ "landmark_mesh": {
1044
+ "file": "landmark_mesh.onnx",
1045
+ "exporter": "torchscript",
1046
+ "inputs": {
1047
+ "rgb": [
1048
+ 1,
1049
+ 3,
1050
+ 256,
1051
+ 256
1052
+ ]
1053
+ },
1054
+ "outputs": {
1055
+ "landmarks": [
1056
+ 1,
1057
+ 478,
1058
+ 2
1059
+ ]
1060
+ },
1061
+ "max_abs_diff_vs_pytorch": 5.960464477539062e-07,
1062
+ "bytes": 2712633,
1063
+ "sha256": "c75d93dad4b88d5aede7b7196b6bf11debdd9c897e96559af3fd11b12cc0b658"
1064
+ }
1065
+ }
1066
+ }
onnx/medium/face_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bdfbdbf6a1257540dddaeae5e31fd8b795a80c6c3223fdf28feaf21472232ec
3
+ size 12484198
onnx/medium/face_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:077868af032c98c38f5389f80e7a3e02af16fd812148b694b96cf6187e656309
3
+ size 12484198
onnx/medium/flow_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0d1a1fd1c3f1a29582e17a93712525d84b3919c8f87148d723f026e6e5f7cbb
3
+ size 12456980
onnx/medium/flow_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba6509d098c2a9e66681864741aa58bcbe8dd980803ae291ba1df65f5a157114
3
+ size 12456980
onnx/medium/matting_base_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38df4ae7e9897f601daf27abaa077705add8a95cb8ab4daab2beb686a3c519a1
3
+ size 12950755
onnx/medium/matting_base_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a0cbcb32c631f0dd7f6a6f5f4bec92f6d81560dce3c8f987f0e08b1b30191df
3
+ size 12950755
onnx/medium/matting_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0b385d6690b2d08c1e393ff2258b6f3b3065d8bee0f1ff0f0ce2d68a0ce0cf7
3
+ size 12959999
onnx/medium/matting_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8af2e196920fc9d4ac39337f57ef92bcde94248096773d921870c8a36d9fb76
3
+ size 12959999
onnx/small/face_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f681db132c9b1ec8df31a0db608d0a503608ac554bddcf43be389b4695b79c2
3
+ size 3275353
onnx/small/face_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83c39bdc7f89d7fa13bf0196fab368b591ea7392e08ade504096f78d45d76c15
3
+ size 3275353
onnx/small/flow_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d115ed1031bd720b094bd11b2f48f69388e1a5267d2f1e1a9b5348cd496c5c13
3
+ size 3138152
onnx/small/flow_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1dcd8ead03d68aa04dc2f512f7b50026c10618640742f84c902509858768c1dd
3
+ size 3138152
onnx/small/matting_base_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0548e3fd053a39a24ac66f8f215b7df4a94e18f3c3136ea11250c178a581afe
3
+ size 3603286
onnx/small/matting_base_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcd7557e9958895582e86d11dc82e42b2087781c8eaf780ee13fadee74ada7b6
3
+ size 3603286
onnx/small/matting_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6aca89d9df1cfe26670693eaf138d615b3b74979fe613f8f0195e9f5da14a90
3
+ size 3613647
onnx/small/matting_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd71824117a22b36a3a9f387caaff1903d10d8f32cda35ddd8011d0d00cf367a
3
+ size 3613647
onnx/xl/face_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc1264f9b3eea5d3edb6ad775d825746c400384fcf65aac8e30d383fcdee533e
3
+ size 26354120
onnx/xl/face_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c75ca1383259d1c4be64412bc849c2fa3560ab1e17758eb68b2f3e4af2c06fd0
3
+ size 26354120
onnx/xl/flow_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7991f55d4d6ef48b27a47e4f647fda461598085694963b1401b7ff2e57bbea03
3
+ size 26353870
onnx/xl/flow_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b3bb3f460343f82af55b4d30c5103b4aa8d6b9e15c8670468f48af8eff92575
3
+ size 26353870
onnx/xl/matting_base_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fcf2f01b533a7eb9d30dac3b1c6512b103f2823905f6436438bac6267f6dd93
3
+ size 29185231
onnx/xl/matting_base_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57b5f2514b8f7c794a43e79ebef9c5807a24126c5827a8ed2c0aa18ac29d0e7d
3
+ size 29185231
onnx/xl/matting_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ee02f5a73df90d5b62af667eaf57ca85a4065e7fe676e845d4a28d410f56daa
3
+ size 29198204
onnx/xl/matting_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dd089eb2d4257f055fb782eda71cf7339a996c517cc73fb48a996bdc7261771
3
+ size 29198204
onnx/xs/face_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c529e5b10492cffadf31b3bdb7caff89195e83cf81d8b592a18e91bae3687bb
3
+ size 3275353
onnx/xs/face_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5d07ff35d0bb30eb46e45b2e3885667b9b53095a0198fdc0f31caf144faa25d
3
+ size 3275353
onnx/xs/flow_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e498f6c2b0b47d27b7a1d17f96e524cbfcb589652bb175f737d652f8049ffe
3
+ size 3202933
onnx/xs/flow_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0762c907d1c75fd11595e7f07f65731e7349f28740acfc2dc24987f92246b6e
3
+ size 3202933
onnx/xs/matting_base_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34ca5d3b018722987878548399c40dcfd3ae1657b0d0682d4113b05312c93583
3
+ size 3603286
onnx/xs/matting_base_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14845c6f670ee9e4c7c77d8e669488f1376904ff426fb7be30f19d20054d2513
3
+ size 3603286
onnx/xs/matting_landscape.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75749759daa4d7e839e8aa189ce6a4e95edc72253b1f5028e833455ebae2f792
3
+ size 3613647
onnx/xs/matting_portrait.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ada077894985240f37df9914e220eee963eefb0b375659713a664f0816084612
3
+ size 3613647