Models and variants
The detection models Skylark Edge runs, what each one detects, the variants a model comes in and the hardware each variant runs on.
Each model is a detector: one image in, every object of every class it knows out. Most are
the same models as the Skylark SDK, under the names Skylark Central uses for
them. Any active license can download all of them; skylark-edge models lists them, with
their current versions.
Models
| Model | In the SDK | For | Input | Classes |
|---|---|---|---|---|
cctv_detection | CFAM-CCTV | Fixed cameras watching streets, sites and public spaces | 1280 | 13 |
drone_detection | CFAM-Aerial | Drone footage, top-down or oblique | 1280 | 22 |
thermal_drone_detect | CFAM-Aerial-Thermal | Drones in thermal imagery of the sky | 640 | 1 |
fod_detection | CFAM-FOD | Foreign object debris on runways, taxiways and aprons | 1920 | 3 |
uas_detection | CFAM-UAS | Quadcopters, their payloads, and birds against the sky | 1280 | 3 |
dash_detection | — | Dashboard cameras in moving vehicles | 1280 | 8 |
ocr_detection | — | The characters on a number plate, in a crop of the plate | 224 | 36 |
detr | — | Everyday objects: a general-purpose detector | 640 | 80 |
Input is the square, in pixels, that an image is scaled into before the model sees it. You can pass any size: Skylark Edge scales and pads it, and returns boxes in your image's own pixels.
What each model detects
Class names are exactly as they appear in results, in the order of their classId.
| Model | Classes |
|---|---|
cctv_detection | person, face, weapon, head, three_wheeler, four_wheeler, two_wheeler, fire, smoke, vest, helmet_ppe, helmet_bike, number_plate |
drone_detection | person, bicycle, car, van, truck, three_wheeler, bus, motorcycle, machinary-vehicle, animal, large_fire, medium_fire, small_fire, large_smoke, medium_smoke, small_smoke, no_fire, vest, helmet, head, partial_vest, partial_human |
thermal_drone_detect | Drone |
fod_detection | Big, Medium, Small |
uas_detection | Quadcopter, Payload, Bird |
dash_detection | person, head, three_wheeler, four_wheeler, two_wheeler, helmet, number_plate, traffic_light |
ocr_detection | 0 to 9, then A to Z |
detr | The 80 COCO classes, from person, bicycle and car to toothbrush |
A loaded model also lists its classes in model.classes.
Variants
A model can come in more than one build. Skylark Edge runs the ONNX build, the one under the model's plain name, on every supported machine.
| Variant | Precision | Download | Runs on | In Skylark Edge |
|---|---|---|---|---|
| ONNX FP32 | 32-bit float | Full size | Every supported machine, on CPU or GPU | Yes |
| ONNX FP16 | 16-bit float | About half | NVIDIA GPUs and DirectML; on a CPU, use FP32 | Planned |
| TensorRT | FP16 or INT8 | Smallest | NVIDIA Jetson, built for one device type | Planned |
| Hailo | INT8 | Smallest | Hailo-8 and Hailo-8L accelerators | Planned |
Skylark Central also holds TensorRT and Hailo builds of some models, named after the model
with a suffix: cctv_detection_jetson_sm87_trt10.3, cctv_detection_hailo. Skylark's own
products use them. Skylark Edge doesn't run them yet, so skylark-edge models leaves them
out, and downloading one fails with unsupported_model, naming the ONNX build to use instead.
Until they ship, a Jetson runs the ONNX build, and a Hailo accelerator isn't used.
Hardware
Skylark Edge is published for these systems, all with Python 3.10 or newer:
| System | Architecture | ONNX Runtime package | Runs on |
|---|---|---|---|
| Linux (glibc 2.28+: Ubuntu 20.04, Debian 10, RHEL 8 and newer) | x86-64 | onnxruntime or onnxruntime-gpu | CPU, or NVIDIA GPUs with CUDA 12 |
| Linux, including NVIDIA Jetson with JetPack 6 | ARM64 | onnxruntime | CPU; see below for the Jetson GPU |
| macOS 13 or newer | Apple silicon | onnxruntime | CPU |
| Windows 10 and 11 | x64 | onnxruntime, onnxruntime-gpu or onnxruntime-directml | CPU, NVIDIA GPUs, or any DirectX 12 GPU |
On a Jetson, PyPI's ONNX Runtime runs on the CPU only. To use the GPU, install NVIDIA's
ONNX Runtime build for your JetPack version in place of onnxruntime, then Skylark Edge as
usual:
pip install skylark-edge --index-url https://docs.skylarklabs.ai/simple/Skylark Edge uses whichever ONNX Runtime is installed. Which device a model runs on is chosen when you load it; see Choosing the hardware.
Quickstart
Install Skylark Edge, download a model with your license key and run it on an image — then unplug the network and run it again.
Python API
Every class and method in the skylark_edge package — downloading and loading models, running them on images and video frames, choosing the hardware, and the result format.