AHOYAHOY PerceptionArchitecture
1 / 5
AHOYSolution brief

AHOY Perception

The end-to-end platform for production computer vision — one integrated system from physical sensors to deployed inference: annotate, version, train, evaluate, deploy and monitor, with the data and the model fully traceable at every step.

Sensors → Inference
API-first · SDK · CLI · Web
Edge · On-prem · Cloud · Air-gap
Full data & model lineage
The perception workflow — one continuous loop
Capture stage— from sensors to managed data
Sensors
Cameras
Live RTSP / RTMP / HLS feeds, multi-stream.
Sensors
LiDAR & RADAR
Point-cloud & range captures alongside vision.
Sources
Recorded files
Video & image datasets — hashed & stored once.
Training stage— annotate, version & build the model
Step 01
Annotate
AI-assisted labeling, review & quality control.
Step 02
Version
Immutable, fingerprinted datasets — git for data.
Step 03
Train
Catalog model, fine-tune, or bring your own.
Deployment stage— optimize, ship & run anywhere
Step 04
Optimize
Evaluate runs, select the best, export ONNX / TensorRT.
Step 05
Deploy & infer
Serve live streams on edge, on-prem or cloud.
Runtime
Perception SDK
YAML-driven DeepStream + Triton; Kafka / RTSP out.
Bring your own model & deploy it. Drop in any ONNX model + labels, write one YAML file, and the Perception SDK runs a live multi-stream inference pipeline — no DeepStream wiring, edge to cloud.

Vertically-integrated architecture

Application
Sensor ingest · auto-labeling · annotation · versioning · training · evaluation · export · active learning — via Web Studio, Python SDK, CLI & REST.
Governance
Data & model lineage · reproducible splits · immutability · RBAC · SSO/MFA · audit · tenant isolation · quotas · GDPR purge.
Models
Detection (YOLO · RT-DETR) · classification · pose · segmentation · NVIDIA TAO · bring-your-own-model · plugin contracts · registry.
Data & Compute
Content-addressed store · git-for-datasets · COCO/YOLO I/O · resource governor · sandboxed training · Triton & DeepStream serving.
Infrastructure
Edge (Jetson/IGX) · on-prem · cloud · air-gap · Kubernetes · GPU/MIG · CPU-only · S3/SeaweedFS · PostgreSQL.

Why it's different

  • One platform, not a toolchain. Label, version, train, serve — no seams where reproducibility leaks out.
  • Lineage by construction. Every model traces to the exact data and code that made it; data leakage is structurally impossible.
  • Git for datasets. Immutable, fingerprinted, copy-on-write versions you can diff and pull back byte-for-byte.
  • Runs on what you have. A resource governor admits work against live GPU/CPU capacity — SaaS or on-prem.
  • Deploy by YAML. One config file takes an ONNX model to live multi-stream inference, edge to cloud.
Built in-house

The thin glue that is the product:

Data versioningResource governorYAML inference runtime
Adopted, license-clean

Best-in-class permissive components:

KeycloakLabel StudioMLflowTritonTAO
Deploy targets

The same stack, placed where data lives:

EdgeOn-premCloudAir-gap

AHOY Perception · Solution brief — see the companion Technical Architecture & Platform Diagram for detail.

AHOY

AHOY Perception

End-to-end platform for production computer vision — sensors to inference

Your private environment · Edge · On-prem · Cloud
The perception workflow
Capture stage— from sensors to managed data
Sensors
Cameras
Live RTSP / RTMP / HLS feeds, multi-stream.
Sensors
LiDAR & RADAR
Point-cloud & range captures alongside vision.
Sources
Recorded files
Video & image datasets — hashed & stored once.
Training stage— annotate, version & build the model
Step 01
Annotate
AI-assisted labeling, review & quality control.
Step 02
Version
Immutable, fingerprinted datasets — git for data.
Step 03
Train
Catalog model, fine-tune, or bring your own.
Deployment stage— optimize, ship & run anywhere
Step 04
Optimize
Evaluate runs, select the best, export ONNX / TensorRT.
Step 05
Deploy & infer
Serve live streams on edge, on-prem or cloud.
Runtime
Perception SDK
YAML-driven DeepStream + Triton; Kafka / RTSP out.
Bring your own model & deploy it. Drop in any ONNX model + labels, write one YAML file, and the Perception SDK runs a live multi-stream inference pipeline — no DeepStream wiring, edge to cloud.
Active-learning loop — low-confidence detections from the field flow back to annotation, compounding accuracy.
Application Layer

Perception Workflow

One API-first platform for the full lifecycle — from raw sensor data to a deployed model — driven from a web studio, SDK, CLI or REST.

Sensor Ingest
Auto-Labeling
Annotation Studio
Dataset Versioning
Training & Tuning
Model Evaluation
Export & Optimize
Active Learning
Web Studio
Python SDK
CLI
REST API
Governance Layer

Lineage & Trust

Every model traces back to the exact data and code that made it. Reproducibility, access control and compliance across all datasets and models.

Data & Model Lineage
Reproducible Splits
Dataset Immutability
RBAC
Auth · SSO / MFA
Audit Logging
Tenant Isolation
Storage Quotas
GDPR Purge
Experiment Tracking
Model Layer

Vision Models

State-of-the-art CV architectures plus bring-your-own-model. Detection, classification, pose and segmentation, registered with full lineage.

Detection · YOLO / RT-DETR
Classification
Pose Estimation
Instance Segmentation
NVIDIA TAO
Bring-Your-Own-Model
Plugin Contracts
Model Registry
Hyperparameter Tuning
Model Routing
Perception Data Engine

Data & Compute Core

A content-addressed dataset store with git-like versioning, plus resource-aware training and serving on whatever hardware is present.

Content-Addressed Store
Git-for-Datasets
COCO / YOLO I/O
Dataset Diff & Stats
Resource Governor
Job Queue
Sandboxed Execution
Triton Serving
DeepStream Runtime
MLflow Backend
Infrastructure Layer

Heterogeneous Compute

Deploy on the hardware and clusters you already run. The same stack ships to a Jetson at the edge, a server room, or a cloud region.

Edge · Jetson / IGX
On-prem
Cloud · AWS / Azure / GCP
Air-gap
Kubernetes
GPU / MIG
CPU-only
S3 / SeaweedFS
PostgreSQL
Workflow Governance Models Data & Compute Infrastructure
AHOY Perception · Reference Architecture
AHOYAHOY Perception
Technical Architecture

From the sensor to the served model

An end-to-end platform and SDK for production computer vision — covering the full journey from physical sensors to deployed inference: annotate, version, train, evaluate, deploy and monitor, with the data and the model fully traceable at every step.

Sensors → Inference, A-to-ZAPI-first · SDK · CLI · WebEdge · On-prem · CloudFull data & model lineage

01 Executive summary

One platform from the sensor to the served model

Computer-vision teams today stitch together a dozen disconnected tools — one to label, another to store data, a notebook to train, a registry somewhere, and a separate runtime to deploy. The seams are where reproducibility, accuracy and time-to-production are lost.

AHOY Perception collapses that toolchain into a single, vertically-integrated platform. A team ingests data from cameras, LiDAR or RADAR; labels it with AI assistance; freezes it into an immutable, versioned dataset; trains a built-in or custom model on whatever compute is available; evaluates and selects the best candidate; exports it to an optimized runtime format; and deploys it for live inference at the edge, on-prem or in the cloud — all through one API, one SDK and one web studio.

North star. Any model's lineage must trace back to the exact data and the exact code that created it. Every dataset is an immutable, content-addressed snapshot; every training run links a model version to the dataset version and configuration that produced it. Reproducibility is structural, not aspirational.

The guiding build philosophy is to adopt the hard, generic parts and build only the thin glue that is the product: best-in-class permissively-licensed components (annotation, tracking, serving, identity) stitched by an API-first backend, with three things built in-house because off-the-shelf tools do them badly — a git-like data-versioning engine, a resource-aware job governor, and a YAML-driven inference runtime.

02 Architecture at a glance

A vertically-integrated stack, five layers deep

The platform is organized as five layers. The workflow a user touches sits on top; underneath it, governance makes every action traceable, the model layer supplies the intelligence, the data & compute engine does the heavy lifting, and the infrastructure layer places it all on the hardware you already run.

See the companion Platform Architecture Diagram for the full layered view with per-layer capabilities.

Application

Perception Workflow

The end-to-end lifecycle, exposed identically through Web Studio, Python SDK, CLI and REST.

Governance

Lineage & Trust

RBAC, audit, reproducible splits, immutability, tenant isolation, compliance.

Model

Vision Models

Detection, classification, pose, segmentation, plus bring-your-own-model.

Data & Compute

Perception Data Engine

Content-addressed versioning, resource governor, sandboxed training, serving.

03 The perception lifecycle

Six stages, one continuous loop

Every capability maps to one stage of a single closed loop. The same steps run whether driven by a point-and-click studio user or a CI pipeline calling the SDK — because both hit the same API.

① Capture — from physical sensors to managed data

Data enters from live cameras (RTSP/RTMP/HLS), recorded video and image files, or other modalities such as LiDAR and RADAR captures. Bytes are streamed into object storage, hashed (SHA-256) and stored exactly once — duplicates across a workspace collapse to a single blob.

② Annotate — label with AI assistance

A rebranded annotation studio handles boxes, masks, keypoints and classes, with optional AI pre-labeling (e.g. SAM / GroundingDINO) to bootstrap labels for a human to correct. Already-labeled data imports directly via COCO or YOLO.

③ Version — git for datasets

The working set is frozen into a numbered, immutable version with a content fingerprint and a deterministic, leakage-safe train/val/test split. Versioning is metadata-only and copy-on-write — a new version that adds 300 images to an existing 1,200 stores only the 300 new blobs.

④ Train — catalog, fine-tune, or bring your own

Pick a built-in architecture, a fine-tuning recipe, or supply your own model code. The job is admitted by the resource governor when a slot is free; untrusted custom code runs sandboxed. Metrics stream live to the studio and the SDK.

⑤ Optimize — evaluate, select, export

Compare runs on per-class metrics, PR curves and confusion matrices; promote the best candidate; export to ONNX (portable) or a TensorRT engine (fastest on NVIDIA), packaged for the inference runtime.

⑥ Deploy & Infer — anywhere

The exported model drops into the YAML-driven inference runtime and serves live streams on edge devices, on-prem servers or cloud GPUs. Detections flow out as overlaid video, files, or structured Kafka messages.

The loop closes. Low-confidence detections observed in the field are surfaced back into annotation as the next batch to label — an active-learning flywheel that compounds accuracy with every deployment cycle.

04 Layer-by-layer

What lives in each layer

Application Layer — Perception Workflow

The platform is API-first: one versioned public API is the product, and the Web Studio, Python SDK and CLI are co-equal clients of it. Everything the UI can do is reachable from code.

  • Web Studio — point-and-click for labelers, reviewers and managers.
  • Python SDK — script the whole loop: create → upload → version → train → stream metrics → export → deploy.
  • CLI — a thin wrapper over the SDK for CI/CD and ops.
  • REST API — versioned (/v1), OpenAPI-specified, with async-job semantics and webhooks.

Governance Layer — Lineage & Trust

  • Data & model lineage — a dual foreign key ties every model to its dataset version and run.
  • Reproducible splits & immutability — committed versions never change; splits are deterministic.
  • RBAC, SSO/MFA, audit logging — adopted via Keycloak; who-changed-what is recorded.
  • Tenant isolation & quotas — strict per-workspace separation, storage quotas, GDPR purge.

Model Layer — Vision Models

  • Built-in architectures — detection (YOLO, RT-DETR), classification, pose, instance segmentation.
  • NVIDIA TAO — the native train → ONNX → TensorRT → DeepStream path for CV.
  • Bring-your-own-model — three tiers: catalog, script-mode, and full custom container.
  • Plugin contracts — register a model like a DeepStream plugin; the UI builds its config form automatically.

Perception Data Engine — Data & Compute Core

  • Content-addressed store — bytes stored once by hash, deduplicated per workspace.
  • Git-for-datasets — immutable versions, diffs, tags, lineage, COCO/YOLO import-export.
  • Resource governor & job queue — admits work against live hardware capacity.
  • Serving runtimes — Triton for hosted endpoints, DeepStream for streaming inference.

Infrastructure Layer — Heterogeneous Compute

  • Targets — Edge (Jetson/IGX), on-prem servers, cloud (AWS/Azure/GCP), and air-gapped sites.
  • Compute — GPU / MIG slices, multi-GPU, or CPU-only — the platform detects and adapts.
  • Storage — cloud S3 or self-hosted SeaweedFS; PostgreSQL for all metadata.

05 Data versioning engine Built in-house

"Git for datasets" — the foundation everything sits on

This is the bottom of the stack and the part no off-the-shelf tool gives you the right way. It is an independent, hexagonal module (ports & adapters): a pure core that runs standalone on a laptop (SQLite + local disk), embedded in the platform, or as a microservice — the same code in every mode.

Content-addressed, copy-on-write storage

File bytes are stored once by their sha256 and deduplicated within a workspace. A dataset references content; a version freezes those references. Nothing copies bytes, so versions are cheap metadata.

TableRole
datasetsNamed, workspace-owned containers; soft-delete; unique slug per workspace.
filesContent records — one per unique (workspace, sha256).
dataset_filesThe mutable working area — (dataset, filename) → file.
dataset_versionsImmutable snapshots — number, fingerprint, split, parent_id lineage.
version_filesThe frozen manifest — (filename, sha256, role, split) per version.
version_tagsStable mutable names (production, golden) → one version.

Reproducible by construction

  • Fingerprint — manifest_hash = sha256 over the sorted manifest rows, computed in Python (codepoint sort, canonical JSON) so it is identical on SQLite and Postgres.
  • Leakage-safe split — each file's bucket is decided by hashing its content plus a seed, so duplicate bytes can never straddle train and test, and the split survives renames.
  • Lineage — every commit records its parent_id; the chain walks back to origin.

Safe deletion over immutable, deduplicated data

Because versions are immutable and blobs are shared, deletion removes a reference, never naively the bytes. Reference counting plus a grace-period garbage collector reclaims a blob only when zero versions point at it. A lineage guard protects any version a model was trained on, and GDPR erasure is an explicit, audited tombstone.

06 Models & training

Built-in intelligence, plus bring-your-own-model

For the CV core, NVIDIA TAO Toolkit is the backbone: a clean train → export(.onnx) → TensorRT engine path that drops straight into the inference runtime. Alongside it, MMDetection / RT-DETR and Hugging Face cover Apache/BSD-licensed alternatives.

Three execution tiers for custom models

TierWhat the user bringsRuns inTrade-off
0 · CatalogA built-in architecture + hyperparametersCurated imagesLowest effort, safest
1 · Script modeA training script + a deps listCurated framework base imagesBYO model, recommended default
2 · BYO containerA full Docker image with their codeTheir image, sandboxedMax flexibility, max security surface

The plugin framework — "define the rules, users add models"

Just as DeepStream lets you drop in a custom plugin by implementing a known interface, the platform defines a small set of extension-point contracts (build / train / evaluate / export). A user implements them to make their own model a first-class, trainable, reproducible citizen — discovered via standard Python entry points, configured from a JSON-Schema manifest that the UI renders into a form automatically.

Why build untrusted-code execution? Tiers 1–2 run customer code on shared GPUs. The runtime is sandboxed with gVisor + nvproxy (the approach Modal Labs uses for multi-tenant GPU sandboxing) — composable with MIG slicing and low-overhead for GPU-bound work — with Kata/Confidential-Containers as an optional VM-grade premium tier.

07 Inference & deployment runtime Built in-house

From ONNX to live streams with one YAML file

The Perception SDK replaces dozens of low-level DeepStream config files, GStreamer elements and inference parameters with a single declarative YAML file. You provide an ONNX model and labels; the SDK generates every DeepStream config, links the pipeline, and routes multi-stream output automatically.

Model types

Detector, classifier, pose (17 COCO joints), instance segmentation, and Triton-served variants — chainable (e.g. detect → track → classify).

Architectures

YOLO v5–v13 / v26 & YOLOX, DetectNet_v2, YOLO-pose, YOLO-seg, and any softmax classifier (ResNet, EfficientNet, ViT…).

Inputs

Local files, RTSP, RTMP and HLS streams — single or multi-stream, batched automatically.

Outputs

X11 display overlays, MP4/MKV files, RTSP/RTMP re-streaming, FPS metering, and structured per-frame Kafka detection messages.

Hardware-accelerated encode/decode (GPU by default, CPU fallback) means the same YAML runs on a Jetson at the edge and a multi-GPU server — only the device changes.

08 Reproducibility & lineage

Trace any model back to its exact data and code

Lineage is the spine that connects the two in-house engines. The data engine fingerprints every dataset version; the training layer records, for every run, which dataset version and which model code produced the artifact.

QuestionHow the architecture answers it
What exact data trained this model?A dual FK from the model version to its dataset_version — a single join.
Can I rebuild last month's dataset?version.pull() reconstructs the exact files, labels and split byte-for-byte.
Did the data change between runs?diff(a, b) reports added / removed / relabeled, with old and new hashes.
Which code produced the model?The run records its source type and reference (catalog id, script + commit, or image digest).
Did test data leak into training?Content-hash splitting makes leakage structurally impossible.

09 Multi-tenancy & resource governance Built in-house

Admit work against the hardware that is actually present

What a user is allowed to run depends on live capacity, not hardcoded limits — and this holds identically for hosted SaaS and a customer's on-prem box, where the hardware is unknown in advance. A resource governor probes the host and admits work against real capacity.

  • Probe — GPUs present? VRAM free? CPU cores, RAM, disk — continuously, gracefully handling a no-GPU host.
  • Request — every job carries a resource request (catalog models fill it in; plugins declare it).
  • Admit / queue / reject — fits now → run; could fit later → queue with a visible position; can never fit → reject with a clear reason.
Detected hardwareSharing strategyConcurrency
No GPU (CPU-only)CPU/RAM-bound; GPU jobs rejectedby free cores / RAM
One consumer GPUwhole-GPU per job; MPS for bursty small jobs~1 heavy job
Several GPUsone job per GPU, or multi-GPU jobs= # GPUs
Datacenter GPU (A100/H100)optional MIG partitioning into isolated slicesup to # slices

Tenant isolation is structural: every operation resolves through a single workspace-scoped chokepoint, so cross-tenant access is impossible by construction rather than by per-call discipline.

10 Deployment topologies

The same stack, placed where the data lives
Edge

Jetson / IGX devices

The inference runtime ships to the device; models exported as TensorRT engines for the target GPU. Streams processed locally, detections published upstream.

On-prem

Single-tenant appliance

The full platform as a self-contained bundle on the customer's LAN. The governor auto-sizes to the box; license-safe component swaps (SeaweedFS, Valkey).

Cloud

Multi-tenant SaaS

Hosted, with cloud object storage, GPU pools and MIG-aware scheduling; horizontal scale-out via Ray or Kubernetes when a single node is outgrown.

Air-gap

Disconnected sites

For regulated or offline environments — the same bundle with no outbound dependencies, models and data never leaving the perimeter.

11 Technology stack & licensing

Adopt the generic parts; build only the product
ConcernChoicePostureWhy
Public API / SDK / CLIFastAPI · Python SDK · TyperBuildOne versioned API; clients generated from the spec.
IdentityKeycloakAdoptApache-2.0; realms = tenants; SSO/MFA free.
AnnotationLabel Studio CEAdoptApache-2.0; rebrand & resell freely.
Data versioningCustom on Postgres + object storeBuildSaaS needs row-level, API-first snapshots — not git-shaped tools.
Tracking + registryMLflow (headless)AdoptApache-2.0 REST backend; charts rendered in our UI.
Queue + sandboxRQ/Dramatiq + Valkey · gVisorBuild/AdoptClean hard-cancel; safe untrusted-code execution.
Training (CV)NVIDIA TAO · MMDet / RT-DETRAdopt ⚠Native ONNX→TRT→DeepStream; verify NVIDIA EULA.
ServingTriton · DeepStream (Perception SDK)Adopt/BuildBSD-3 Triton; YAML runtime built in-house.
Object storageCloud S3 / SeaweedFSAdoptAvoid MinIO (AGPL) for the appliance.
Licensing landmines avoided. ClearML server (SSPL) and Ultralytics YOLO (AGPL) can force source disclosure for a resold product — replaced by RQ/MLflow and MMDetection/RT-DETR respectively. Redis → Valkey, MinIO → SeaweedFS.

12 Delivery roadmap

Walking skeleton first, then layer outward
PhaseDeliversMilestone
1 · Data engineContent-addressed store, immutable versions, diff/pull, lineage, SDK + CLI.Import a folder → commit v1 → pull it back byte-for-byte.
2 · Label & interchangeRebranded annotation, COCO/YOLO import-export, tags, stats.Annotate & freeze a labeled dataset via UI and API.
3 · Train & trackGovernor, catalog + script-mode training, MLflow, live metrics, registry.One-call .train() with live metrics, model tied to dataset version.
4 · BYO & servegVisor sandbox + BYO-container, ONNX/TRT export, Triton + DeepStream serving, RBAC, audit.Multi-tenant beta with full bring-your-own-model.
5 · Appliance & scaleOn-prem bundle, air-gap, license-safe swaps; Ray/K8s scale-out.Customer runs the rebranded appliance on their LAN / edge.
AHOY Perception · Technical Architecture
AHOYAHOY Perception
Build a Pipeline

Create your own inference pipeline

Bring your own model or generate one with our SDK — then compose a live, multi-stream inference pipeline in a single YAML file that runs unchanged from a device at the edge to a GPU in the cloud.

Your model or oursYOLO · RT-DETR · pose · segmentationMulti-streamEdge → Cloud
1 Start with a model

Two ways to get a model — both end deployable

Whether you train from scratch on the platform or arrive with a model already in hand, you finish with the same thing: a portable artifact the pipeline can serve.

Option A · Generate with our SDK

Train it on the platform

No model yet? Build one from your data with the AHOY training pipeline — fully tracked and reproducible.

AnnotateVersionTrainEvaluateExport
Option B · Bring your own model

Drop in a model you already have

Already trained elsewhere? Provide an ONNX file and a labels list — no retraining, no lock-in.

ONNXYOLO v5–v13/26RT-DETRclassifierposesegmentation
Either path produces A deployable model · ONNX or TensorRT engine
2 Compose the pipeline

Connect inputs → inference → outputs

A pipeline is a dataflow: one or more sources feed an inference chain, which feeds one or more sinks. You declare it; the SDK generates all the DeepStream wiring.

Input · Streams
  • Cameras — RTSP / RTMP
  • HLS (http/https)
  • Recorded files
  • Multi-stream, batched
Inference · Models
  • Detector (YOLO / RT-DETR)
  • Pose · Segmentation
  • Classifier (chained)
  • Tracker — IOU / NvSORT / NvDCF
Output · Sinks
  • Display (tiled)
  • File — MP4 / MKV
  • RTSP / RTMP re-stream
  • Kafka — JSON detections
# pipeline.yaml — declare the dataflow, run with: vision-runner pipeline.yaml
streams:
  - { uri: "rtsp://camera-01/stream", source_id: 0 }
models:
  - { name: detector, type: detector, architecture: yolo11,
      onnx_file: /models/model.onnx, label_file: /models/labels.txt }
  - { type: tracker, tracker_type: NvSORT }
sinks:
  outputs:
    - { type: display }
    - { type: kafka, broker: "kafka:9092", topic: detections }
Chain models freely. detector → tracker → classifier, or detector → secondary detector — entries run in the order you list them, and the tracker can sit anywhere in the chain.
3 Deploy — edge to cloud

One pipeline, anywhere on the continuum

The same YAML runs on a Jetson at the edge, a server on your LAN, or a GPU in the cloud — only the target device changes. Models export to a TensorRT engine tuned per device; GPU encode/decode falls back to CPU when needed.

EdgeJetson · IGX

Lowest latency, data never leaves the device. Best for real-time control & privacy-sensitive sites.

On-premServers · LAN

Full data residency & compliance control, with room for more streams and bigger models.

CloudAWS · Azure · GCP

Elastic scale across many cameras and sites; GPU pools and MIG-aware scheduling.

DimensionEdgeOn-premCloud
LatencyLowest — processed locallyLow (LAN)Network-bound round-trip
Data residencyStays on deviceStays on your networkLeaves the perimeter
ScalePer-devicePer-server / clusterElastic, many sites
HardwareJetson / IGX GPUYour GPUs (MIG optional)Cloud GPU pools
Best forReal-time, offline, regulatedCompliance, steady loadBurst, aggregation, central ops
Air-gapped too. For disconnected or regulated sites, the same bundle runs with no outbound dependencies — models and footage never leave the perimeter.
4 From zero to live

Four steps to a running pipeline

Get a model

Train with the SDK or bring your own ONNX + labels.

Write one YAML

Declare streams, models & sinks in pipeline.yaml.

Run it

vision-runner pipeline.yaml on the target device.

Stream results

View live, re-stream RTSP, or publish detections to Kafka.

What you can compose

Multi-stream

Many cameras in one pipeline — tiled or per-stream outputs.

Model chaining

Detector → tracker → classifier, or nested detectors.

Precision control

FP16 or FP32; batch size auto-tuned to stream count.

Structured output

Per-frame JSON to Kafka with class, bbox & tracking ID.

Triton-served

Point at a Triton endpoint instead of a local ONNX file.

Active classes

Detect only the class IDs you care about.

HW-accelerated

NVIDIA encode/decode by default, CPU fallback.

Full lineage

SDK-trained models trace back to their exact dataset.

Ready to build? The Client Guide documents every field, and to get the SDK visit https://www.ahoyams.com/.
AHOY Perception · Build a Pipeline
AHOYAHOY Perception
Perception SDK · Client Guide

One YAML file, one command

A YAML-driven video analytics SDK. Define your input streams, AI models, object tracker, and outputs in a single config file and run everything with one command — the SDK generates all DeepStream configuration automatically.

DeepStream 9.0Licensed via AMSYAML-configuredDetector · Pose · Segmentation · ClassifierTriton · Tracker · Kafka · Webhook

01 Overview

What you receive & how to run it

Define your input streams, AI models, object tracker, and outputs in a single config file and run everything with one command.

What you receive

ItemDescription
Container imageThe SDK, delivered as a licensed Docker image through AMS. Bundles the DeepStream runtime, the vision-runner CLI, and all native libraries.
Example YAML configs (optional)Ready-to-use pipeline configurations
To get the SDK, subscribe to Perception SDK on https://www.ahoyams.com/

Prerequisites

  • NVIDIA GPU with driver 590 or newer (required by DeepStream 9.0)
  • Docker with the NVIDIA Container Toolkit (for GPU access)
  • AMS credentials (API key and service ID) — provided with your subscription
  • Your model weights (ONNX + label files) and input media files or camera streams

Running the container

The SDK ships as a licensed Docker image through AMS — there is no separate install step. Pull the image with the credentials AMS gives you, then start it with GPU access, your model-weights directory mounted, and (for the display output) X11 forwarding:

# Allow the container to open a display window (see Display below)
xhost +local:docker

docker run \
  --gpus all -itd --network=host --privileged \
  -v /path/to/model_weights:/root/models \
  -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
  -e AMS_API_KEY="ams_..." \
  -e AMS_SERVICE_ID="<service-id>" \
  <ams-image>:<tag>
Licensed at startup. The pipeline validates its AMS license once at startup and will not run without valid credentials.

AMS credentials

VariableRequiredDescription
AMS_API_KEYYesYour AMS API key (ams_...)
AMS_SERVICE_IDYesUUID of the subscribed Perception SDK service

Run options

OptionPurpose
--gpus allExpose all host GPUs to the container (required)
-itdInteractive terminal, detached — the container runs in the background
--network=hostShare the host network stack, so the pipeline can reach RTSP cameras, Kafka brokers, or webhook endpoints on the host/LAN
--privilegedFull device access (required for GPU and display)
-v /path/to/model_weights:/root/modelsMount your model weights (ONNX + labels) and configs into the container. Reference these paths in your YAML.
-v /tmp/.X11-unix:/tmp/.X11-unixMount the host X11 socket — required only for the display output
-e DISPLAY=$DISPLAYForward the host display into the container — required only for the display output

Display

The display output opens a live video window on your host's X server. It needs the two X11 options above, plus permission for the container to reach your display (xhost +local:docker). Outputs that do not render a window (file, rtsp, rtmp, kafka, webhook, fps_meter) do not require X11 — omit the two X11 options if you are not using display.

Quick start

1. Create a config file (pipeline.yaml) inside your mounted weights directory, so it is visible in the container under /root/models:

pipeline:
  name: "My First Pipeline"

streams:
  - uri: "file:///root/models/video.mp4"
    source_id: 0

models:
  - name: "my-detector"
    type: "detector"
    architecture: "yolo11"
    onnx_file: /root/models/model.onnx
    label_file: /root/models/labels.txt

outputs:
  width: 1280
  height: 720
  video:
    - type: "display"
Paths are container paths. Paths in the config refer to locations inside the container — put your media, model, and label files under the mounted /root/models directory.

2. Run it inside the running container:

docker exec -it <container> vision-runner /root/models/pipeline.yaml

3. Stop the pipeline with Ctrl+C.

Running multiple pipelines

Because the container started with -itd idles in the background, you can run several pipelines side by side — each vision-runner is its own independent process, so they don't affect one another. Start each in the background with docker exec -d:

docker exec -d <container> vision-runner /root/models/lot-a.yaml
docker exec -d <container> vision-runner /root/models/lot-b.yaml

Give each pipeline a distinct pipeline.name and, for streaming outputs (rtsp/rtmp), distinct URLs/ports so they don't collide.

To run a single pipeline without a long-lived container, pass the config directly — the container then runs that one pipeline and exits when it ends:

docker run --gpus all --network=host --privileged \
  -v /path/to/model_weights:/root/models \
  -e AMS_API_KEY="ams_..." -e AMS_SERVICE_ID="<service-id>" \
  <ams-image>:<tag> /root/models/pipeline.yaml

02 Configuration overview

Four top-level sections
pipeline:    # Pipeline metadata (optional)
streams:     # Input sources (required)
models:      # AI models and tracker (required)
outputs:     # Where results go: video + events (required)
SectionRequiredDescription
pipelineNoPipeline metadata
pipeline.nameNoFriendly name for logs (default: vision-pipeline)
streamsYesList of input sources (at least 1)
modelsYesList of AI models and/or a tracker (at least 1)
outputsYesOutput configuration (video and/or events) with at least 1 output

03 Input — streams

One or more input sources, type auto-detected from the URI
streams:
  - uri: "file:///path/to/video.mp4"
    source_id: 0
  - uri: "rtsp://192.168.1.100:554/live"
    source_id: 1

Stream fields

FieldTypeRequiredDefaultDescription
uristringYes—Input source URI
source_idintegerNolist index (0, 1, 2…)Unique ID for this stream
Note. When using multiple streams with per-stream outputs (mode: "multi"), set source_id on each stream so they match their corresponding output entries. For a single stream, source_id can be omitted.

Supported URI formats

URI prefixType
file:///path/to/video.mp4Local file
rtsp://host:port/pathRTSP stream
rtmp://host:port/pathRTMP stream
http:// / https://HLS stream

04 Models

The AI inference pipeline

The models list defines the inference pipeline — detectors, classifiers, pose estimators, segmentation models, Triton models, and an optional tracker. Entries are processed in the order they appear, which controls the inference chain.

Common model fields

Apply to all model types except tracker:

FieldTypeReq.DefaultDescription
namestringNoauto (e.g. detector_0)Unique name; referenced by operate_on for chaining
typestringYes—Model type (see below)
onnx_filestringYes—Path to ONNX model file
label_filestringYes—Path to label file (one class name per line)
batch_sizeintegerNonext pow-2 ≥ stream countInference batch size
precisionstringNofp16Inference precision: fp32 or fp16
Auto-configured. num_classes is determined by counting non-empty lines in label_file, and the inference config is auto-generated — you only provide the ONNX model and labels.

Model types

TypeDescription
detectorObject detection with bounding boxes
poseHuman keypoint estimation (17 COCO joints)
segmentationInstance segmentation with mask overlay
classifierSecondary classification on detected objects
triton_detectorObject detection via Triton Inference Server
triton_classifierClassification via Triton Inference Server
trackerObject tracking

Detector

Runs on full frames and produces bounding-box detections. At least one primary detector (without operate_on) is required in every pipeline.

FieldTypeReq.DefaultDescription
architecturestringYes—Model architecture (see below)
active_classeslist<int>Noall classesOnly detect these class IDs (0-indexed)
operate_onstringNo—Parent model name (makes this a secondary detector)
operate_on_classeslist<int>Noall parent classesOnly process these parent class IDs

Supported detector architectures

yolo5 · yolo6 · yolo7 · yolo8 · yolo9 · yolo10 (built-in NMS) · yolo11 · yolo12 · yolo13 · yolo26 (built-in NMS) · yolox · detectnet_v2 (NVIDIA TAO / ResNet-based)

Pose estimation

Detects human keypoints (17 COCO joints) in addition to bounding boxes; skeleton overlays are drawn automatically. Field architecture required; active_classes optional.

Architectures: yolo_pose8 · yolo_pose11 · yolo_pose26 (each n/s/m/l/x variants)

Instance segmentation

Detects objects and produces per-instance masks, drawn automatically. Field architecture required; active_classes optional.

Architectures: yolo_seg5 · yolo_seg8 · yolo_seg11 · yolo_seg26

Classifier (model chaining)

Classifiers run on objects detected by a parent model and must reference it with operate_on. The SDK supports a softmax classifier compatible with ResNet, VGG, GoogLeNet/Inception, MobileNet, EfficientNet, SqueezeNet, DenseNet, ShuffleNet, DarkNet and Vision Transformers (ViT/DeiT/Swin).

FieldTypeReq.DefaultDescription
architecturestringNosoftmaxClassifier architecture (defaults to softmax)
operate_onstringYes—Parent model name (must appear earlier in the list)
operate_on_classeslist<int>Noall parent classesOnly classify these parent class IDs

Triton detector & classifier

For models served by NVIDIA Triton Inference Server (over gRPC). Triton models do not use onnx_file or architecture — the model definition lives on the Triton server.

FieldTypeReq.DefaultDescription
triton.model_namestringYes—Model name on the Triton server
triton.server_urlstringYes—Triton gRPC endpoint (e.g. localhost:8001)
triton.model_versionintegerNolatestSpecific model version
triton.preprocessobjectNosee belowPreprocessing overrides

Preprocessing overrides

FieldDefaultDescription
scale_factor0.00392156862 (1/255)Input normalization scale
color_formatRGBRGB, BGR, or GRAY
offsetsnoneChannel mean offsets (e.g. [0.485, 0.456, 0.406])
maintain_aspect_ratio01 to maintain aspect ratio during resize
symmetric_padding01 to use symmetric padding

Tracker

Assigns persistent IDs to detected objects across frames. Add it as an entry in the models list; its position determines where tracking occurs in the chain. Only one tracker is allowed per pipeline.

# Option A — built-in tracker type
- type: "tracker"
  tracker_type: "NvSORT"

# Option B — custom tracker config file
- type: "tracker"
  config_path: "/path/to/custom_tracker.yml"
Built-in typeDescription
IOUIntersection-over-Union. Fast and lightweight.
NvSORTNVIDIA SORT. Good balance of speed and accuracy.
NvDCFDiscriminative Correlation Filter. Most accurate, higher GPU usage.

Optional fields: tracker-width (default 960), tracker-height (default 544). config_path overrides tracker_type.

Active classes & chaining rules

  • Active classes — set active_classes: [0, 2] on a detector, pose, or segmentation model to detect only specific class IDs (0-indexed line numbers in the label file).
  • At least one primary model (without operate_on) is required in every pipeline.
  • operate_on must reference a model defined before it; classifiers must always have operate_on.
  • Supported chains: detector → classifier, detector → detector, triton_detector → triton_classifier.

05 Outputs

Two categories — video renderers and event emitters

Outputs are split into two categories. video holds visual renderers that produce a video stream: display, file, rtsp, rtmp. events holds data, metadata, and diagnostics that produce no video: kafka, webhook, fps_meter. You can define multiple outputs simultaneously across both categories.

outputs:
  width: 1280
  height: 720
  video:
    - type: "display"
    - type: "rtsp"
      url: "rtsp://localhost:8554/stream"
  events:
    - type: "kafka"
      broker: "kafka-host:9092"
      topic: "detections"

Output-level fields

FieldTypeDefaultDescription
widthinteger1280Composited video width (pixels)
heightinteger720Composited video height (pixels)
videolist—Visual renderer definitions
eventslist—Data / metadata / diagnostics definitions
Category matters. video and events are each optional, but at least one output across the two is required. Each entry's type must belong to the category it appears under — placing (for example) kafka under video is a configuration error.

display (video)

Live video window with overlays. Multiple streams are shown in an auto-tiled grid. No extra config.

fps_meter (events)

Measures pipeline throughput without producing video; FPS printed to stdout. No extra config.

File · RTSP · RTMP (video)

Write/stream video with overlays. All three accept mode (single = one tiled output, multi = per-stream), bitrate (default 4 000 000), and encoder. File/RTSP also accept codec (h264/h265); file adds container (mp4/mkv) and path; RTSP/RTMP use url.

# File — per-stream output
- type: "file"
  mode: "multi"
  codec: "h264"
  container: "mp4"
  bitrate: 4000000
  encoder: "gpu"
  streams:
    - { source_id: 0, path: "/recordings/cam0.mp4" }
    - { source_id: 1, path: "/recordings/cam1.mp4" }
Note. RTMP only supports the H264 codec (no codec field needed).

Kafka (events)

Sends per-frame detection results as JSON messages to a Kafka topic — see Event message format for the payload schema.

FieldTypeRequiredDefaultDescription
brokerstringYes—Kafka broker address (host:port)
topicstringYes—Kafka topic name
proto_libstringNoDeepStream defaultKafka protocol adapter library path

Not affected by multi-stream modes — each message carries a source_id identifying which stream the frame came from. Bounding box coordinates are scaled from the source frame resolution into the configured outputs.width × outputs.height, so they match the pipeline's output resolution rather than the raw input size.

Webhook (events)

POSTs the same per-frame detection JSON to an HTTP endpoint. Messages are accumulated into batches and sent as a JSON array. Network I/O runs on a background thread, so a slow or unreachable endpoint never stalls the pipeline — the queue drops oldest-first when full.

- type: "webhook"
  url: "http://127.0.0.1:8000/detections"
  batch_size: 10
  timeout: 5.0
  frame_interval: 1
  max_queue_size: 1000
FieldTypeRequiredDefaultDescription
urlstringYes—HTTP endpoint the batches are POSTed to
batch_sizeintegerNo10Messages accumulated per POST (a JSON array)
timeoutnumberNo5.0POST request timeout in seconds
frame_intervalintegerNo1Emit every Nth frame (1 = every frame)
max_queue_sizeintegerNo1000Max queued messages before oldest are dropped

Like Kafka, the webhook output taps the batched buffer, so each message carries its own source_id, and bounding boxes are scaled to the configured outputs.width × outputs.height.

Encoder options

ValueH264 encoderH265 encoderDescription
gpu (default)nvv4l2h264encnvv4l2h265encNVIDIA hardware encoder
cpux264encx265encSoftware encoder

Multi-stream behavior

Outputsingle modemulti mode
displayTiled grid (always)N/A
fileOne tiled fileOne file per stream
rtspOne tiled RTSP streamOne RTSP stream per input
rtmpOne tiled RTMP streamOne RTMP stream per input
kafkaAll frames to one topicN/A (includes source_id)
webhookAll frames to one endpointN/A (includes source_id)
fps_meterMeasures overall FPSN/A

Tiling auto-arranges inputs in a grid (2 streams = 1×2, 4 = 2×2, 6 = 2×3). With mode: "multi", the streams list must have one entry per input stream, and each source_id must match a valid input stream.

06 Event message format

One JSON schema, two transports

The two event outputs — kafka and webhook, configured under outputs.events — emit the same per-frame JSON schema. Each message covers one frame and contains all detected objects. They differ only in transport: kafka publishes one JSON message per frame to the configured topic, while webhook POSTs a JSON array of these per-frame messages (batched by batch_size) to the configured URL.

Detection-only message

{
  "version": "1.0",
  "source_id": 0,
  "frame_id": 180,
  "timestamp": "2026-01-29T16:39:38.066Z",
  "objects": [
    {
      "class_id": 0,
      "label": "car",
      "confidence": 0.93,
      "bbox": { "left": 384.89, "top": 321.08, "width": 16.56, "height": 16.64 },
      "tracking_id": 19
    }
  ]
}

Detection + classification message

When a classifier runs on an object, that object gains a classifications array:

{
  "version": "1.0",
  "source_id": 0,
  "frame_id": 180,
  "timestamp": "2026-01-29T16:39:38.066Z",
  "objects": [
    {
      "class_id": 0,
      "label": "car",
      "confidence": 0.93,
      "bbox": { "left": 384.89, "top": 321.08, "width": 16.56, "height": 16.64 },
      "tracking_id": 19,
      "classifications": [
        { "classifier_id": 2, "label": "silver", "confidence": 0.88 },
        { "classifier_id": 3, "label": "sedan", "confidence": 0.76 }
      ]
    }
  ]
}

Fields

FieldTypeDescription
versionstringMessage schema version (currently 1.0)
source_idintegerInput stream index this frame belongs to
frame_idintegerFrame number since pipeline start
timestampstringRFC 3339 wall-clock timestamp
objectsarrayDetected objects in this frame
objects[].class_idintegerModel output class ID
objects[].labelstringClass name from the model's label file
objects[].confidencefloatDetection confidence (0.0–1.0)
objects[].bboxobjectBounding box: left, top, width, height (pixels), scaled to the configured outputs.width × outputs.height
objects[].tracking_idintegerTracker-assigned ID (−1 if no tracker)
objects[].classificationsarrayClassification results for this object. Omitted entirely for objects that no classifier ran on.
…[].classifier_idintegerUnique component ID of the classifier that produced this result
…[].labelstringPredicted class name from the classifier's label file
…[].confidencefloatClassification confidence (0.0–1.0)
Classifications. The field appears on an object only when a classifier produced a result for it — detection-only pipelines omit it rather than emitting an empty array. Each object can carry more than one entry when several classifiers run on it; use classifier_id to tell them apart.

07 Complete examples

Copy-paste pipelines

Basic object detection

pipeline:
  name: "Object Detection"
streams:
  - uri: "file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4"
    source_id: 0
models:
  - name: "yolo-detector"
    type: "detector"
    architecture: "yolo11"
    onnx_file: /path/to/model.onnx
    label_file: /path/to/labels.txt
outputs:
  width: 1280
  height: 720
  video:
    - type: "display"

Detector + tracker + classifier chain

Detect vehicles, track them, then classify their color.

models:
  - name: "vehicle-detector"      # primary detector
    type: "detector"
    architecture: "yolo11"
    onnx_file: /path/to/vehicle_model.onnx
    label_file: /path/to/vehicle_labels.txt
    active_classes: [0, 2]
  - type: "tracker"             # tracker between detector and classifier
    tracker_type: "IOU"
  - name: "color-classifier"     # secondary classifier
    type: "classifier"
    onnx_file: /path/to/color_model.onnx
    label_file: /path/to/color_labels.txt
    operate_on: "vehicle-detector"
    operate_on_classes: [0, 2]
outputs:
  width: 1280
  height: 720
  video:
    - type: "display"

Kafka analytics (no video output)

models:
  - name: "yolo-detector"
    type: "detector"
    architecture: "yolo11"
    onnx_file: /path/to/model.onnx
    label_file: /path/to/labels.txt
  - type: "tracker"
    tracker_type: "NvSORT"
outputs:
  width: 1920
  height: 1080
  events:
    - type: "fps_meter"
    - type: "kafka"
      broker: "kafka-host:9092"
      topic: "detections"

Webhook events alongside a live display

outputs:
  width: 1280
  height: 720
  video:
    - type: "display"
  events:
    - type: "webhook"
      url: "http://127.0.0.1:8000/detections"
      batch_size: 10
      frame_interval: 1

Multi-stream with per-stream RTSP outputs

streams:
  - uri: "rtsp://camera1/live"
    source_id: 0
  - uri: "rtsp://camera2/live"
    source_id: 1
models:
  - name: "yolo-detector"
    type: "detector"
    architecture: "yolo11"
    onnx_file: /path/to/model.onnx
    label_file: /path/to/labels.txt
  - type: "tracker"
    tracker_type: "NvSORT"
outputs:
  width: 1280
  height: 720
  video:
    - type: "display"
    - type: "rtsp"
      mode: "multi"
      codec: "h264"
      bitrate: 4000000
      streams:
        - { source_id: 0, url: "rtsp://localhost:8554/cam0" }
        - { source_id: 1, url: "rtsp://localhost:8554/cam1" }

Triton detector + classifier chain

models:
  - name: "triton-detector"
    type: "triton_detector"
    triton:
      model_name: "detector_model"
      server_url: "localhost:8001"
    label_file: /path/to/labels.txt
  - type: "tracker"
    tracker_type: "IOU"
  - name: "triton-classifier"
    type: "triton_classifier"
    triton:
      model_name: "classifier_model"
      server_url: "localhost:8001"
    label_file: /path/to/class_labels.txt
    operate_on: "triton-detector"
    operate_on_classes: [0, 2]
outputs:
  width: 1280
  height: 720
  video:
    - type: "display"

Additional ready-to-run configs (pose estimation, instance segmentation, tiled RTSP, standalone Triton detector) follow the same structure — swap the model type/architecture and the output block.