Upload NAFNet-SIDD-width32-OpenVINO: ONNX, OpenVINO IR, Intel NPU blob, card and manifest
Browse filesFiles changed (7)
- .gitattributes+1
- README.mdAdded+101
- manifest.jsonAdded+39
- nafnet_sidd_width32_fp16.onnxAdded+3
- npu/nafnet_sidd_width32_fp16.blobAdded+3
- openvino/nafnet_sidd_width32_fp16.binAdded+3
- openvino/nafnet_sidd_width32_fp16.xmlAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textnpu/nafnet_sidd_width32_fp16.blob filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101---license: mitbase_model: litert-community/NAFNet-SIDD-width32-LiteRTbase_model_relation: quantizedlibrary_name: openvinopipeline_tag: image-to-imagetags:- openvino- onnx- intel-npu---
# NAFNet-SIDD-width32-OpenVINO
NAFNet-SIDD-width32 for Intel NPUs, GPUs and CPUs: nafnet_sidd_width32_fp16 from [litert-community/NAFNet-SIDD-width32-LiteRT](https://huggingface.co/litert-community/NAFNet-SIDD-width32-LiteRT/tree/59984b5234b24ccf2f324ce0ac49cd640b9d5b2c) 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 33.37 ms per run, numpy input to numpy output.
Scripts, raw records, and the same table for all 52 graphs of LiteRT-Models: https://github.com/john-rocky/windows-zoo
## Files
| file | bytes | sha256 ||---|---|---|| `nafnet_sidd_width32_fp16.onnx` | 123,972,868 | `a9ca266868fad47ce1d19ae2677809e8e69a3c131afbe54ba24c431fe0dc069a` || `openvino/nafnet_sidd_width32_fp16.xml` | 4,321,836 | `23cbc5db5e4f9b74c2a5b52f805fc257d75e12a1e4f281ad7a22e47f87ee3e32` || `openvino/nafnet_sidd_width32_fp16.bin` | 122,488,512 | `b698717effde94f23e584f3015d3bf977b70f61400c25dd3ca507aa63dd41183` || `npu/nafnet_sidd_width32_fp16.blob` | 76,558,465 | `adf3f5a64954ff9a8f720331088dd87f5ccbe15eeabf4c8f41468e9a9c3d5679` |
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).
## How it was measured
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 to 2026-11-07. 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 (ONNX Runtime's CPU EP); PASS = cosine ≥ 0.99, no NaN or Inf, and top-1 agreement ≥ 0.99 for class scores. The Snapdragon rows are Qualcomm AI Hub profile jobs of the same ONNX files (their own timer).
## Speed and output check
| processor | runtime | file | ms | load s | output check ||---|---|---|---|---|---|| Intel AI Boost NPU | OpenVINO 2026.4.1 | `npu/` blob (`import_model`) | 33.37 | 0.06 | PASS (cos ≥ 0.9999) || Intel AI Boost NPU | ONNX Runtime 1.31.1 + OpenVINO EP 1.8.1 | `.onnx`, compiled when the session loads | 34.20 | 64.26 | PASS (cos ≥ 0.9999) || Intel Graphics (iGPU) | ONNX Runtime 1.31.1 + OpenVINO EP 1.8.1 | `.onnx` | 32.90 | 6.50 | PASS (cos ≥ 0.9999) || RTX 5080 Laptop (95 W limit) | ONNX Runtime 1.31.1, CUDA EP | fp16 copy of the `.onnx` (not in this repo) | 50.21 | 1.52 | PASS (cos ≥ 0.9999) || RTX 5080 Laptop (95 W limit) | ONNX Runtime 1.31.1, CUDA EP | `.onnx` | 46.93 | 1.58 | PASS (cos ≥ 0.9999) || Core Ultra 9 386H CPU | ONNX Runtime 1.31.1, CPU EP | `.onnx` | 732.31 | 0.62 | reference || Snapdragon X2 Elite NPU | Qualcomm AI Hub, precompiled QNN ONNX | `.onnx` compiled by AI Hub | 25.95 | 0.39 | not compared (AI Hub profile job, 2026-10-30) || Snapdragon X2 Elite NPU | Qualcomm AI Hub, ONNX Runtime QNN EP | `.onnx`, compiled when it loads | 43.49 (4 layers on the CPU) | 38.48 | not compared (AI Hub profile job, 2026-10-30) || Galaxy S26 NPU | Qualcomm AI Hub, precompiled QNN ONNX | `.onnx` compiled by AI Hub | 25.45 | 0.23 | not compared (AI Hub profile job, 2026-10-30) |
The ONNX file against the source `.tflite` (LiteRT interpreter on the CPU, the same input): PASS, cosine ≥ 0.9999 for every output.
## Run it on the Intel NPU
Download this repo, then run the snippets from its folder:
```shpip install huggingface_hubhf download mlboydaisuke/NAFNet-SIDD-width32-OpenVINO --local-dir NAFNet-SIDD-width32-OpenVINOcd NAFNet-SIDD-width32-OpenVINO```
OpenVINO (`pip install openvino==2026.4.1`):
```pythonimport numpy as npimport openvino as ov
core = ov.Core()if "NPU" not in core.available_devices: raise SystemExit(f"no Intel NPU visible to OpenVINO: {core.available_devices}")with open("npu/nafnet_sidd_width32_fp16.blob", "rb") as f: compiled = core.import_model(f.read(), "NPU") # precompiled: no compile at load# or compile the IR on this machine: compiled = core.compile_model("openvino/nafnet_sidd_width32_fp16.xml", "NPU")# replace the zeros with your preprocessed input (float32, the shapes printed by compiled.inputs)feeds = {i.get_any_name(): np.zeros(list(i.shape), np.float32) for i in compiled.inputs}outputs = compiled(feeds)print({o.get_any_name(): outputs[o].shape for o in compiled.outputs})```
ONNX Runtime with the OpenVINO EP (`pip install onnxruntime==1.31.1 onnxruntime-ep-openvino==1.8.1`):
```pythonimport numpy as npimport onnxruntime as ortimport onnxruntime_ep_openvino as ov_ep
ort.register_execution_provider_library(ov_ep.get_ep_name(), ov_ep.get_library_path())npu = [d for d in ort.get_ep_devices() if d.ep_name == ov_ep.get_ep_name() and d.ep_metadata.get("ov_device") == "NPU"]if not npu: raise SystemExit("no Intel NPU visible to the OpenVINO EP")so = ort.SessionOptions()so.add_provider_for_devices(npu, {})sess = ort.InferenceSession("nafnet_sidd_width32_fp16.onnx", sess_options=so) # compiles for the NPU here# replace the zeros with your preprocessed input (float32)feeds = {i.name: np.zeros(i.shape, np.float32) for i in sess.get_inputs()}outputs = sess.run(None, feeds)print([o.shape for o in outputs])```
## Licence
MIT, the licence of [litert-community/NAFNet-SIDD-width32-LiteRT](https://huggingface.co/litert-community/NAFNet-SIDD-width32-LiteRT). The source card names the upstream model as `megvii-research/NAFNet` (not a Hugging Face repo).123456789101112131415161718192021222324252627282930313233343536373839{
"source_repo": "litert-community/NAFNet-SIDD-width32-LiteRT",
"source_revision": "59984b5234b24ccf2f324ce0ac49cd640b9d5b2c",
"graphs": {
"nafnet_sidd_width32_fp16": {
"from": "nafnet_sidd_width32_fp16",
"ir": {
"openvino": "2026.4.1-22982-e213a147257-releases/2026/4",
"compress_to_fp16": false
},
"blob_compiled_with": {
"openvino": "2026.4.1-22982-e213a147257-releases/2026/4",
"FULL_DEVICE_NAME": "Intel(R) AI Boost",
"NPU_DRIVER_VERSION": "1004841",
"NPU_COMPILER_VERSION": "524292",
"NPU_COMPILER_TYPE": "CompilerType.PREFER_PLUGIN",
"INFERENCE_PRECISION_HINT": "<Type: 'float16'>"
},
"files": {
"nafnet_sidd_width32_fp16.onnx": {
"bytes": 123972868,
"sha256": "a9ca266868fad47ce1d19ae2677809e8e69a3c131afbe54ba24c431fe0dc069a"
},
"openvino/nafnet_sidd_width32_fp16.xml": {
"bytes": 4321836,
"sha256": "23cbc5db5e4f9b74c2a5b52f805fc257d75e12a1e4f281ad7a22e47f87ee3e32"
},
"openvino/nafnet_sidd_width32_fp16.bin": {
"bytes": 122488512,
"sha256": "b698717effde94f23e584f3015d3bf977b70f61400c25dd3ca507aa63dd41183"
},
"npu/nafnet_sidd_width32_fp16.blob": {
"bytes": 76558465,
"sha256": "adf3f5a64954ff9a8f720331088dd87f5ccbe15eeabf4c8f41468e9a9c3d5679"
}
}
}
}
}123version https://git-lfs.github.com/spec/v1oid sha256:a9ca266868fad47ce1d19ae2677809e8e69a3c131afbe54ba24c431fe0dc069asize 123972868123version https://git-lfs.github.com/spec/v1oid sha256:adf3f5a64954ff9a8f720331088dd87f5ccbe15eeabf4c8f41468e9a9c3d5679size 76558465123version https://git-lfs.github.com/spec/v1oid sha256:b698717effde94f23e584f3015d3bf977b70f61400c25dd3ca507aa63dd41183size 122488512.gitattributes+1
README.mdAdded+101
manifest.jsonAdded+39
nafnet_sidd_width32_fp16.onnxAdded+3
npu/nafnet_sidd_width32_fp16.blobAdded+3
openvino/nafnet_sidd_width32_fp16.binAdded+3
openvino/nafnet_sidd_width32_fp16.xmlAdded