用于视频分析的生产级 C++ 边缘 AI 引擎,具有可视化管线编排、设备端 VLM 和实时 OSD。
CosmoEdge goes beyond model serving with a complete application layer for model import, visual orchestration, alarms, and event delivery. The core engine and console in this repository are released under Apache-2.0; certified hardware, commercial preset models, and Model Guard distribution protection have separate boundaries.
.nn artifacts for BM1688 and CV186X. The benchmark records an exact Open-package and running-engine binding for both reference devices.linux/amd64 path for one local-video workflow on Apple Silicon, validated through multiple end-to-end lab rounds.CosmoEdge provides one engine architecture and orchestration experience, but each build selects one inference backend and uses models generated for that target platform.
| Platform | Status | Runtime / model artifact | Current scope and evidence |
|---|---|---|---|
| Sophon BM1688 | v1.1 supported / primary; VLM supported | BMRT / .nn |
Validated VLM at 0.1 FPS/ch through 6 channels, plus v1.1 workload evidence |
| Rockchip RK3576 / RV1126B | v1.1 supported; RK3576 VLM supported | RKNN / target-specific .rknn; RKLLM on RK3576 |
RK3576 validates VLM at 0.1 FPS/ch through 4 channels; RV1126B VLM is outside this release claim. Other platform-specific results remain separate in the v1.1 report |
| Sophon CV186X | v1.1 supported; VLM supported | BMRT / target-specific .nn |
Validated VLM at 0.1 FPS/ch through 6 channels, plus model-import and workload evidence in the v1.1 benchmark |
| x86 Linux / Windows; Apple Silicon macOS | Linux / Windows supported; macOS Preview | ONNX Runtime / .onnx |
Mac uses amd64 emulation for one local-video developer workflow, not native performance evidence |
| Sophon BM1684X | Planned | — | Not part of the current release scope |
No edge hardware is required. The x86 mode uses the same UI and workflow with lower throughput than an NPU deployment.
# 1. Clone
git clone https://github.com/cosmo-wander-ai/cosmo-edge.git
cd cosmo-edge
# 2. Start on Linux
sudo docker compose -f docker-compose.x86.yml up -d --build
# Windows: docker compose -f docker-compose.x86.windows.yml up -d --build
# 3. Open http://localhost:8080Apple Silicon macOS uses a separate amd64-emulation Preview path:
./scripts/macos-docker-preview.sh doctor
./scripts/macos-docker-preview.sh up
./scripts/macos-docker-preview.sh status
# Open http://127.0.0.1:8080The Mac Preview provides a local, single-video workflow under linux/amd64
emulation on Apple Silicon. Read the full
macOS Docker Preview scope first.
After startup, use the Scenario Configuration tutorial to create your first AI detection task. Docker Compose V1 users can replace docker compose with docker-compose.
git clone https://github.com/cosmo-wander-ai/cosmo-edge.git
cd cosmo-edge
# BM1688 (default when the chip model is omitted)
./scripts/docker-compose.sh -f docker-compose.sophon.yml run --rm cosmo-sophon-package --chip bm1688
# CV186X
./scripts/docker-compose.sh -f docker-compose.sophon.yml run --rm cosmo-sophon-package --chip cv186xThe wrapper selects the available Compose implementation and requests elevated
Docker access only when required. The build selects the matching model resources
without a model-path argument and exports each target independently under
build_output/public-runtime//, together with TARGET_CHIP and
SHA256SUMS.
The default Open package contains plaintext models and requires no device authorization. Verify the chip marker and checksum before deployment. The Build Guide is the authoritative build reference; follow the Deployment Guide for SSH installation, web upgrade, recovery, and post-reboot acceptance.
./scripts/docker-compose.sh -f docker-compose.rockchip.yml pull cosmo-rockchip-package
# RK3576 (uses the tracked RK3576 model resources)
COSMO_TARGET_CHIP=rk3576 ./scripts/docker-compose.sh \
-f docker-compose.rockchip.yml run --rm cosmo-rockchip-package
ls -lh build_output/rk3576/
# RV1126B (requires a prepared target model overlay)
COSMO_TARGET_CHIP=rv1126b ./scripts/docker-compose.sh \
-f docker-compose.rockchip.yml run --rm cosmo-rockchip-package
ls -lh build_output/rv1126b/One digest-pinned Rockchip builder shares the compiler and RKNN SDK while
selecting an isolated MPP/RGA profile for each chip. RKLLM v1.3.0 is required
and packaged only for RK3576. Target markers, media-profile identities, and
checksums are exported under build_output//. See the
Build Guide and
RK3576 integration guide for model
and device-validation boundaries.
For CV186X, follow the CV186X Quick Start for package installation, model import, first-event verification, upgrade, and recovery boundaries.
| Capability | What it covers | Go deeper |
|---|---|---|
| Native runtime | C++17 engine for multi-channel media, inference scheduling, OSD, tasks, and events | Architecture |
| Visual orchestration | Browser-based pipeline composition, task binding, parameter validation, and live feedback | Pipeline tutorial |
| Inference and media | Platform backends for Sophon, RKNN, and x86; platform-specific builds and model artifacts | Build Guide |
| VLM and DINO | Prompt-based judgment, open-vocabulary detection, and optional VLM review before a detection alarm is reported | VLM Guide |
| Operations and integration | Model management, alarms, event history, REST, WebSocket, MQTT, and webhooks | API Overview |
| Model onboarding and protection | Model conversion, import, validation, and the Open/Protected distribution boundary | Model Porting Guide |
▶ Watch: compose a complete visual pipeline
▶ Watch: GroundingDINO and VLM visual workflows
Already have a model-porting, integration, or UI task? Give your usual coding agent the business goal, available materials, target device or test environment, and acceptance criteria. The repository provides task entry points, examples, checks, and evidence boundaries so the result can include importable artifacts, scoped code changes, and a verifiable conclusion.
Start with Agent-Assisted Development, then use the Model Porting Guide or Contributor Guide for the task at hand.
The v1.1 report covers BM1688, CV186X, RK3576, and RV1126B. It includes 49 independent small-model case reports for person detection, no-safety-helmet analysis, and a concurrent mixed workload at 5 FPS per business task, a controlled 72-hour dual-CV configured profile, and validated VLM performance for BM1688, CV186X, and RK3576.
The short-run capacity refresh uses source commit 89c73a7464a81ef378686447d7c1eeb88b988455, tree 6857fbcce72c7af64e6cb23a27e66a405e9df9af, one fixed 1080p24 input, 30-second steps, and the gates recorded in the release manifest. The 72-hour observation uses source commit 44209759f450e96cda265acfa8bc6d17a1138888, tree 5cbdefeaefaf642407356c22c271ccc7d57935b0, and the same controlled input.
| Platform | 72-hour configured channels | Task bindings | Sample coverage | Min / avg FPS | Result |
|---|---|---|---|---|---|
| BM1688 | 8 | 16 | 4316 / 4320 | 4.68 / 5.086 | PASS |
| CV186X | 8 | 16 | 4316 / 4320 | 4.54 / 5.085 | PASS |
| RK3576 | 8 | 16 | 4316 / 4320 | 5.00 / 5.098 | PASS |
| RV1126B | 4 | 8 | 4316 / 4320 | 4.85 / 5.230 | PASS |
These results describe the tested fixed-channel profiles under controlled local-loop input; they are not maximum-capacity or RTSP-resilience measurements. Execution details are documented in the methodology.
Each channel concurrently runs two business tasks across three model stages: person detection has one detector stage, while no-safety-helmet analysis has a detector followed by a classifier.
| Platform | Workload per channel | Model stages/ch | Target FPS/task | Passing channels | Business-task bindings |
|---|---|---|---|---|---|
| BM1688 | Person detection + no-safety-helmet analysis | 3 | 5 | ≥16 | 32/ |
暂无开放 Issues,或尚未同步最近议题。