snap-ml

Run on-device ML inference for Spectacles with SnapML on camera frames.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/specs-devs/agentic-tools --skill snap-ml
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: snap-ml
Source: https://github.com/specs-devs/agentic-tools/tree/main/skills/snap-ml
Command: npx skills add https://github.com/specs-devs/agentic-tools --skill snap-ml

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate machine learning models directly into Spectacles for on-device, real-time vision tasks, enabling developers to deploy ML-powered features without cloud latency.

Core Features & Use Cases

  • Object detection, image classification, and segmentation on-device with SnapML
  • Real-time inference on camera frames and on-device model loading
  • Use cases include AR experiences, live scene understanding, and interactive AI-assisted apps.

Quick Start

Run a starter SnapML workflow to load a trained model and bind it to the camera feed for real-time inference.

Frequently Asked Questions about snap-ml

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run on-device ML inference for real-time object detection on Spectacles?

On-device ML inference runs directly on Spectacles using SnapML to execute object detection, classification, and segmentation on live camera frames. You need a trained model file, tensor bindings, and an on-device runtime in Lens Studio.

Can I use an ONNX model for real-time computer vision in Lens Studio?

Yes, an ONNX model can be used for real-time computer vision in Lens Studio. You must load the trained model file and bind its input and output tensors to the camera feed for SnapML to process the frames.

What is SnapML used for in AR experiences?

SnapML is used for real-time scene understanding and interactive AI-assisted AR experiences on Spectacles. It processes camera frames on-device to enable live filtering and object recognition without cloud latency.

Does on-device machine learning on Spectacles require an internet connection?

On-device machine learning on Spectacles does not require an internet connection for inference. SnapML executes the trained model locally on the device to provide real-time vision tasks without cloud latency.

How do I bind a trained ML model to a camera feed for live filtering?

To bind a trained ML model for live filtering, you establish proper input and output tensor bindings between the model file and the camera frames. This allows the SnapML runtime to process real-time visual data on Spectacles.