360 Secure SkillHub
360 安全技能中心

YOLO26 OpenVINO for AI PCs

该工具基于Ultralytics+OpenVINO,可将YOLO26系列模型导出为FP32/INT8压缩格式,支持在英特尔CPU/GPU/NPU间切换执行,提供推理基准测试。典型场景含摄像头实时检测、视频推理、模型加速对比,还能构建人数统计、库存计数等下游视觉任务,通过命令行配置,输出实时结果、性能数据或告警。

zhuo-yoyowz
zhuo-yoyowz
热度 26.14
最近更新 2026-05-19 13:25:40
分类:开发依赖:代码执行 / 读写文件 / 联网浏览搜索应用场景:API 集成 / 自动化脚本 / 数据处理 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openvino-yolo-aipc
Metadata
name
openvino-yolo-aipc
description
Turbocharge YOLO26 on Intel AI PCs with Ultralytics + OpenVINO. Use this skill to export compressed FP32/INT8 OpenVINO models, deploy live camera or video inference with compact scripts, switch execution across CPU/GPU/NPU, benchmark acceleration, and build local AI PC vision workflows such as people counting, inventory/object counting, and safety-zone alerts.

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.