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.
Install the package
Two commands. The first installs ONNX Runtime, which runs the models, from PyPI: choose the build for your hardware. The second installs Skylark Edge itself, from Skylark's own index only.
pip install onnxruntime
pip install skylark-edge --index-url https://docs.skylarklabs.ai/simple/Any machine: Linux, macOS on Apple silicon, Windows.
Keep --index-url on the second command, and on upgrades
(pip install -U skylark-edge --index-url https://docs.skylarklabs.ai/simple/): it makes pip take Skylark Edge
only from Skylark's index, never from a package of the same name elsewhere.
Use a virtual environment (python -m venv .venv) to keep it apart from other projects.
Give it your license key
Use your organization's license key, which Skylark provides. Skylark Edge looks for
it in this order: the key you pass in code, the SKYLARK_LICENSE_KEY environment
variable, then the machine's activation file, so a machine that
is already activated needs nothing more.
export SKYLARK_LICENSE_KEY="<your-license-key>"Treat the key like a password: anyone who has it can use your organization's licenses.
Download a model
List the models you can download, then download one. This is the only step that needs the internet.
skylark-edge models
skylark-edge download cctv_detectionAn interrupted download resumes where it stopped. The file arrives encrypted and stays that way on disk.
Run it
from skylark_edge import Edge
edge = Edge() # reads SKYLARK_LICENSE_KEY
model = edge.load("cctv_detection")
result = model.predict("street.jpg")
for d in result["detections"]:
print(d["class"], round(d["confidence"], 2), d["bboxPx"])
print(result["counts"]) # {"person": 4, "four_wheeler": 2, ...}Or from the terminal:
skylark-edge run cctv_detection street.jpgLoading decrypts the model and prepares it for your hardware, so it is the slow step.
Load once, keep the model object, and call predict() on it as many times as you
like.
Go offline
Disconnect the machine and run the same code again: it works. The machine can stay
offline for up to 30 days after its last license check.
skylark-edge status shows until when.
skylark-edge statusNext
- Models and variants: what each model detects and which hardware runs it.
- Python API: running on video frames, choosing a GPU, the result format.
- Licensing and offline use: the 30-day rule and what is sent to Skylark.
Overview
Skylark Edge runs Skylark's detection models on your own machines — a laptop, a server or a Jetson — with no internet connection needed once a model is downloaded.
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.