mlboydaisuke commited on
Commit
2273601
·
verified ·
1 Parent(s): fb8086c

Upload YOLACT-ResNet50-OpenVINO: ONNX, OpenVINO IR, Intel NPU blob, card and manifest

Browse files
Files changed (7) hide show
  1. .gitattributes +1 -0
  2. README.md +80 -0
  3. manifest.json +39 -0
  4. npu/yolact.blob +3 -0
  5. openvino/yolact.bin +3 -0
  6. openvino/yolact.xml +0 -0
  7. yolact.onnx +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ npu/yolact.blob filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: litert-community/YOLACT-ResNet50-LiteRT
4
+ base_model_relation: quantized
5
+ library_name: openvino
6
+ pipeline_tag: image-segmentation
7
+ tags:
8
+ - openvino
9
+ - onnx
10
+ - intel-npu
11
+ ---
12
+
13
+ # YOLACT-ResNet50-OpenVINO
14
+
15
+ YOLACT-ResNet50 for Intel NPUs, GPUs and CPUs: yolact from [litert-community/YOLACT-ResNet50-LiteRT](https://huggingface.co/litert-community/YOLACT-ResNet50-LiteRT/tree/3ecb14b9c4635cd87b515e1d12201c2c1631e19c) as ONNX (tf2onnx 1.17.0, opset 17), OpenVINO IR with fp32 weights, and a precompiled Intel NPU blob. On the NPU of a Core Ultra 9 386H the blob runs in 16.29 ms per run, numpy input to numpy output.
16
+
17
+ Scripts, raw records, and the same table for all 52 graphs of LiteRT-Models: https://github.com/john-rocky/windows-zoo
18
+
19
+ ## Files
20
+
21
+ | file | bytes | sha256 |
22
+ |---|---|---|
23
+ | `yolact.onnx` | 124,705,334 | `414d1e9ad7c8e9075e0f285ae794307beaa5befe785b5fda22f1e0cc7cfb6eed` |
24
+ | `openvino/yolact.xml` | 789,193 | `4ff0eaf04fbf3f1f20531b03bf7bc799665aab73cc5872e14f1092e58206a6c3` |
25
+ | `openvino/yolact.bin` | 124,471,816 | `7d0014086613dd81ec686a5280679415df07d08b202883e4cbfe708007db2751` |
26
+ | `npu/yolact.blob` | 71,868,566 | `5a9dfa91a4a2a238c519439f48b795724890a4e15d5a0bb3e669958933f21961` |
27
+
28
+ The NPU blob was compiled with OpenVINO 2026.4.1, Intel NPU driver 32.0.100.4841 (OpenVINO reports NPU_DRIVER_VERSION 1004841, NPU_COMPILER_VERSION 524292). If `import_model` refuses a blob on another driver or OpenVINO version, compile the IR instead (the commented line in the snippet).
29
+
30
+ ## How it was measured
31
+
32
+ MSI Stealth 16 AI+ (Core Ultra 9 386H, RTX 5080 Laptop GPU at a 95 W power limit, Windows 11 build 26200.9711, on AC power), 2026-11-06. On the laptop, each row is one process: load, one run, 5 warmup runs, then the median of 30 timed runs (2 warmup + 10 timed runs when the first run takes more than 3 s), numpy input to numpy output, every runtime at its default settings, one process at a time, each started after the CPU, the RTX and the Intel GPU had gone idle (the thresholds are in METHOD.md of the GitHub repo). Output check: each output against the CPU output in fp32 on the same input (OpenVINO on the CPU, as ONNX Runtime 1.31.1 cannot load this file); PASS = cosine ≥ 0.99, no NaN or Inf, and top-1 agreement ≥ 0.99 for class scores.
33
+
34
+ ## Speed and output check
35
+
36
+ | processor | runtime | file | ms | load s | output check |
37
+ |---|---|---|---|---|---|
38
+ | Intel AI Boost NPU | OpenVINO 2026.4.1 | `npu/` blob (`import_model`) | 16.29 | 0.04 | PASS (cos ≥ 0.9999) |
39
+ | Intel AI Boost NPU | ONNX Runtime 1.31.1 + OpenVINO EP 1.8.1 | `.onnx`, compiled when the session loads | - | - | did not run |
40
+ | Intel Graphics (iGPU) | ONNX Runtime 1.31.1 + OpenVINO EP 1.8.1 | `.onnx` | - | - | did not run |
41
+ | RTX 5080 Laptop (95 W limit) | ONNX Runtime 1.31.1, CUDA EP | fp16 copy of the `.onnx` (not in this repo) | - | - | did not run |
42
+ | RTX 5080 Laptop (95 W limit) | ONNX Runtime 1.31.1, CUDA EP | `.onnx` | - | - | did not run |
43
+ | Core Ultra 9 386H CPU | ONNX Runtime 1.31.1, CPU EP | `.onnx` | - | - | did not run |
44
+ | Core Ultra 9 386H CPU | OpenVINO 2026.4.1 | `.onnx`, f32 | - | - | reference (ONNX Runtime 1.31.1 cannot load this file) |
45
+
46
+ The ONNX file against the source `.tflite` (LiteRT interpreter on the CPU, the same input): PASS, cosine ≥ 0.9999 for every output.
47
+
48
+ ## Run it on the Intel NPU
49
+
50
+ Download this repo, then run the snippets from its folder:
51
+
52
+ ```sh
53
+ pip install huggingface_hub
54
+ hf download mlboydaisuke/YOLACT-ResNet50-OpenVINO --local-dir YOLACT-ResNet50-OpenVINO
55
+ cd YOLACT-ResNet50-OpenVINO
56
+ ```
57
+
58
+ OpenVINO (`pip install openvino==2026.4.1`):
59
+
60
+ ```python
61
+ import numpy as np
62
+ import openvino as ov
63
+
64
+ core = ov.Core()
65
+ if "NPU" not in core.available_devices:
66
+ raise SystemExit(f"no Intel NPU visible to OpenVINO: {core.available_devices}")
67
+ with open("npu/yolact.blob", "rb") as f:
68
+ compiled = core.import_model(f.read(), "NPU") # precompiled: no compile at load
69
+ # or compile the IR on this machine: compiled = core.compile_model("openvino/yolact.xml", "NPU")
70
+ # replace the zeros with your preprocessed input (float32, the shapes printed by compiled.inputs)
71
+ feeds = {i.get_any_name(): np.zeros(list(i.shape), np.float32) for i in compiled.inputs}
72
+ outputs = compiled(feeds)
73
+ print({o.get_any_name(): outputs[o].shape for o in compiled.outputs})
74
+ ```
75
+
76
+ ONNX Runtime 1.31.1 with the OpenVINO EP 1.8.1 does not run `yolact.onnx` on the NPU: the session fails to load (`onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from C:\src\zoo\onnx\yolact.onnx failed:Node (__main__.Wrap/yolact.`). The OpenVINO lines above run it.
77
+
78
+ ## Licence
79
+
80
+ MIT, the licence of [litert-community/YOLACT-ResNet50-LiteRT](https://huggingface.co/litert-community/YOLACT-ResNet50-LiteRT). The upstream model: [dbolya/yolact-resnet50](https://huggingface.co/dbolya/yolact-resnet50).
manifest.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "litert-community/YOLACT-ResNet50-LiteRT",
3
+ "source_revision": "3ecb14b9c4635cd87b515e1d12201c2c1631e19c",
4
+ "graphs": {
5
+ "yolact": {
6
+ "from": "yolact",
7
+ "ir": {
8
+ "openvino": "2026.4.1-22982-e213a147257-releases/2026/4",
9
+ "compress_to_fp16": false
10
+ },
11
+ "blob_compiled_with": {
12
+ "openvino": "2026.4.1-22982-e213a147257-releases/2026/4",
13
+ "FULL_DEVICE_NAME": "Intel(R) AI Boost",
14
+ "NPU_DRIVER_VERSION": "1004841",
15
+ "NPU_COMPILER_VERSION": "524292",
16
+ "NPU_COMPILER_TYPE": "CompilerType.PREFER_PLUGIN",
17
+ "INFERENCE_PRECISION_HINT": "<Type: 'float16'>"
18
+ },
19
+ "files": {
20
+ "yolact.onnx": {
21
+ "bytes": 124705334,
22
+ "sha256": "414d1e9ad7c8e9075e0f285ae794307beaa5befe785b5fda22f1e0cc7cfb6eed"
23
+ },
24
+ "openvino/yolact.xml": {
25
+ "bytes": 789193,
26
+ "sha256": "4ff0eaf04fbf3f1f20531b03bf7bc799665aab73cc5872e14f1092e58206a6c3"
27
+ },
28
+ "openvino/yolact.bin": {
29
+ "bytes": 124471816,
30
+ "sha256": "7d0014086613dd81ec686a5280679415df07d08b202883e4cbfe708007db2751"
31
+ },
32
+ "npu/yolact.blob": {
33
+ "bytes": 71868566,
34
+ "sha256": "5a9dfa91a4a2a238c519439f48b795724890a4e15d5a0bb3e669958933f21961"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
npu/yolact.blob ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a9dfa91a4a2a238c519439f48b795724890a4e15d5a0bb3e669958933f21961
3
+ size 71868566
openvino/yolact.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d0014086613dd81ec686a5280679415df07d08b202883e4cbfe708007db2751
3
+ size 124471816
openvino/yolact.xml ADDED
The diff for this file is too large to render. See raw diff
 
yolact.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:414d1e9ad7c8e9075e0f285ae794307beaa5befe785b5fda22f1e0cc7cfb6eed
3
+ size 124705334