← 返回
未分类

YOLO26 OpenVINO for AI PCs

Turbocharge YOLO26 on Intel AI PCs with Ultralytics + OpenVINO. Use this skill to export compressed FP32/INT8 OpenVINO models, deploy live camera or video in...
在英特尔AI PC上使用Ultralytics + OpenVINO加速YOLO26。使用此技能导出压缩的FP32/INT8 OpenVINO模型,部署实时摄像头或视频...
zhuo-yoyowz
未分类 clawhub v0.1.1 1 版本 99655.2 Key: 无需
★ 1
Stars
📥 269
下载
💾 0
安装
1
版本
#ai-pc#computer-vision#intel#latest#npu#openvino#ultralytics#yolo26

概述

YOLO26 OpenVINO Turbo for AI PCs

Turn a YOLO26 model into a local AI PC vision app: export it to OpenVINO, shrink it with INT8 quantization, run it on Intel CPU/GPU/NPU, and compare acceleration without writing a heavyweight inference stack.

The skill focuses on fast deployment: a short Ultralytics-integrated script handles OpenVINO export and inference, while wrappers let an agent choose device, precision, model size, benchmark mode, and downstream task behavior.

The default example uses yolo26n.pt because the nano model is quick to download, export, and run live. Users can choose other YOLO26 model sizes such as yolo26s.pt, yolo26m.pt, or yolo26l.pt when they need more accuracy and can afford higher latency or memory use.

The preferred implementation path is the official Ultralytics + OpenVINO integration: export with YOLO(...).export(format="openvino"), then load the exported OpenVINO model folder with YOLO(...) and run inference using Intel device strings such as intel:cpu, intel:gpu, or intel:npu. This keeps the public demo code short while still using OpenVINO acceleration and device targeting.

Best use cases

Use this skill for:

  • Live object detection from a laptop camera or video file.
  • Compressing YOLO26 nano, small, medium, or large models into OpenVINO FP32 and INT8 exports.
  • Accelerating YOLO26 inference on Intel CPU, GPU, and NPU from one compact workflow.
  • Switching device and precision quickly for benchmark or live comparison.
  • Building downstream interactions from detections, such as people counting, inventory/object counting, safety-zone alerts, and object-based UI events.

30-second start

Open PowerShell in the skill scripts folder:

cd "{baseDir}\scripts"
.\setup_env.ps1

Run the live camera demo with the built-in camera:

.\run_ultralytics_demo.ps1 -Mode live -Source 0 -Device GPU -Model yolo26n.pt -Precision fp32

Export or prepare INT8, then run it:

.\run_ultralytics_demo.ps1 -Mode export -Precision int8
.\run_ultralytics_demo.ps1 -Mode live -Source 0 -Device NPU -Precision int8

Use a larger YOLO26 variant when accuracy matters more than speed:

.\run_ultralytics_demo.ps1 -Mode export -Model yolo26s.pt -Precision int8
.\run_ultralytics_demo.ps1 -Mode live -Source 0 -Device GPU -Model yolo26s.pt -Precision int8

Run a repeatable benchmark from a video or camera frame:

.\run_ultralytics_demo.ps1 -Mode benchmark -Source 0 -Device CPU -Precision int8 -BenchmarkSeconds 8

Run the downstream action demo:

.\run_downstream_demo.ps1 -Source 0 -Device NPU -Precision int8 -Task inventory-count -Target bottle

The main YOLO demo overlay shows device, precision, live FPS, inference latency, and detection count. Normal skill usage should prefer command parameters so an agent can choose device, precision, model size, benchmark mode, and downstream task directly.

Recommended AI PC Flow

Start with a visible contrast:

  1. Export yolo26n.pt to OpenVINO FP32, then INT8.
  2. Run the same video or camera input on GPU, NPU, and CPU.
  3. Compare overlay metrics or benchmark mode to explain acceleration and quantization.
  4. Switch from raw detection to an AI PC task: people counting, object counting, or safety-zone alerting.
  5. Use -CountZone and -DangerZone to adapt the task to the user's real scene.

Script entrypoints

Use these files from {baseDir}\scripts:

  • setup_env.ps1: create .venv and install Python dependencies.
  • run_ultralytics_demo.ps1: PowerShell wrapper for live, export, and benchmark modes. It exposes -Model, -Precision, -Device, OpenVINO performance hint, and async request controls.
  • run_ultralytics_openvino_demo.py: Ultralytics + OpenVINO implementation with runtime device and precision switching.
  • run_downstream_demo.ps1: PowerShell wrapper for person counting, object counting, and safety-zone alerts.
  • run_downstream_demo.py: downstream action layer on top of Ultralytics + OpenVINO detections.
  • requirements.txt: Python dependency list.
  • demo_utils.py: lightweight overlay helper.

Model and network behavior

Setup and first export require network access for Python packages, YOLO model weights, and INT8 calibration data if they are not already cached. After the OpenVINO model folders exist, live inference can run locally.

The default model is yolo26n.pt. The exported OpenVINO models are saved under {baseDir}\scripts\integrated_models using the model stem and precision, for example yolo26n_int8_openvino_model or yolo26s_fp32_openvino_model.

If the user already has an exported OpenVINO model folder, pass it with -OpenVinoModelDir.

Region-Based Downstream Tasks

Downstream tasks can use normalized regions of interest:

  • -CountZone "x1,y1,x2,y2": count people only in a custom area, such as a queue, doorway, or meeting-room zone. Empty means full frame.
  • -DangerZone "x1,y1,x2,y2": trigger safety-zone alerts only when a person enters the configured danger area. The default is the top-right third: 0.667,0,1,0.333.

Choosing the right demo path

Use the Ultralytics-integrated path when the user values short, readable code and quick onboarding. It is the cleanest public skill path.

Use a lower-level OpenVINO AsyncInferQueue implementation outside this skill only when the user specifically needs maximum pipeline control, custom preprocessing, custom async scheduling, OpenVINO MULTI throughput pipelines, or deeper performance tuning. The live Ultralytics path intentionally focuses on readable code and CPU/GPU/NPU switching.

References

Read these only when needed:

  • {baseDir}\references\downstream_playbooks.md: downstream interaction ideas and implementation patterns.
  • {baseDir}\references\performance_notes.md: how to explain and benchmark CPU/GPU/NPU and FP32/INT8 differences.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-21 15:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,226 📥 267,765
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,378
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,378 📥 320,363