Skip to content

Demos and Custom Workflows

github-actions[bot] edited this page Nov 30, 2026 · 1 revision

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)

1. Cat Demo — Full SAM2 + CoTracker3 Pipeline

Cat Demo Preview — Click to watch full 1080p video

▶ Watch full 1080p video (51s) with chapter markers on github.io →

Session Walkthrough

  1. Launch python run_main.py --demo cat.
  2. Place 5 foreground (Ctrl+LClick) + 2 background (Ctrl+RClick) clicks on the subject in frame 1 only.
  3. Press Enter — SAM2 generates the segmentation mask and CoTracker3 starts tracking all 5 pose keypoints.
  4. Scrub forward (D / →) — the mask and skeleton track automatically. Drag any drifted keypoint back with Shift+LClick.
  5. Process subsequent batches without re-prompting from scratch.
  6. Press Ctrl+S to save and Ctrl+E to export a 3-in-1 YOLO dataset (train/valid/test + data.yaml).

2. Road Demo — SAM2 Multi-Object Segmentation

Road Demo Preview — Click to watch full 1080p video

▶ 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.


Bundled Demo Comparison

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

Creating a Reusable Named Demo

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:

  1. Place your .mp4 video in demo/videos/.
  2. Duplicate demo/demo_session_state.json (e.g. demo/pallet_demo_session_state.json) and point video_inputs.template at your video.
  3. Configure models.pose.classes with your domain keypoints (for example, pallet corners, forklift tines, box edges, or joint landmarks).
  4. Set a unique demo.name and launch:
python run_main.py --demo <your_name>

Industrial & Warehouse Automation

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.

Footage Licensing

Both bundled demo clips are original project assets. See demo/videos/README.md and assets/README.md.