Repository navigation
Demos and Custom Workflows
AutoSegmentor ships with two bundled, zero-config demos. Watch the full-HD 1080p interactive recordings with clickable chapter markers on the Live Showcase Site (github.io).
python run_main.py --demo list # cat, road
python run_main.py --demo # launches default demo (cat)
python run_main.py --demo cat # SAM2 + CoTracker3 pose + YOLO export
python run_main.py --demo road # SAM2 multi-object segmentation (mask-only)▶ Watch full 1080p video (51s) with chapter markers on github.io →
- Launch
python run_main.py --demo cat. - Place 5 foreground (
Ctrl+LClick) + 2 background (Ctrl+RClick) clicks on the subject in frame 1 only. - Press
Enter— SAM2 generates the segmentation mask and CoTracker3 starts tracking all 5 pose keypoints. - Scrub forward (
D/→) — the mask and skeleton track automatically. Drag any drifted keypoint back withShift+LClick. - Process subsequent batches without re-prompting from scratch.
- Press
Ctrl+Sto save andCtrl+Eto export a 3-in-1 YOLO dataset (train/valid/test+data.yaml).
▶ Watch full 1080p video (37s) with chapter markers on github.io →
Demonstrates multi-class SAM2 mask propagation (road surface, vehicles, pedestrians) without CoTracker pose tracking.
| Demo | Footage | SAM2 Masks | CoTracker3 Pose | Notes |
|---|---|---|---|---|
cat (default)
|
Full-HD cat clip | Yes | Yes (5 keypoints) | End-to-end v3 pipeline: annotation, tracking, drift correction, 3-in-1 YOLO export |
road |
Dashcam footage | Yes | No | Lightweight SAM2 segmentation-only workflow carried over from v1/v2 |
autosegmentor/tools/demo_registry.py dynamically scans demo/*_session_state.json on disk — no hardcoded demo list needs editing when you add a new scenario:
- Place your
.mp4video indemo/videos/. - Duplicate
demo/demo_session_state.json(e.g.demo/pallet_demo_session_state.json) and pointvideo_inputs.templateat your video. - Configure
models.pose.classeswith your domain keypoints (for example, pallet corners, forklift tines, box edges, or joint landmarks). - Set a unique
demo.nameand launch:
python run_main.py --demo <your_name>Beyond the bundled demos, AutoSegmentor is designed for high-precision industrial datasets — pallets, forklifts, totes, and robotic workcells — turning a handful of manual clicks into thousands of labeled detection, segmentation, and pose frames.
Both bundled demo clips are original project assets. See demo/videos/README.md and assets/README.md.
AutoSegmentor • Live Demo Showcase (github.io) • Repository • PyPI

