Turn raw video into YOLO-ready datasets in a handful of clicks
AutoSegmentor pairs Meta AI's Segment Anything Model 2 (SAM2) with CoTracker3 inside a fast desktop studio โ propagate pixel-accurate masks and pose skeletons across long footage, fix drift interactively, and export detection, instance segmentation, and pose datasets in one keystroke.
python run_main.py --demo cat
Real Unedited Demo Sessions
Watch full-resolution 1080p runs directly in your browser. Click any chapter pill to jump straight to that step.
From Raw Footage to Training Set in 4 Steps
Prompt Frame 0
Place foreground (Ctrl+LClick) and background (Ctrl+RClick) clicks. Route each point to SAM2, CoTracker3, or both.
Propagate Batches
Press Enter to run SAM2 masks and CoTracker3 keypoints off the UI thread with live per-stage checklists and rolling ETA.
Scrub & Correct Drift
Hold A/D to scrub smoothly. Drag any drifted keypoint (Shift+LClick) and toggle occlusion visibility.
Export 3-in-1 YOLO
Press Ctrl+E to build train/valid/test + data.yaml for detection, segmentation, and pose simultaneously.
Scalable Model Routing
Control per click whether annotations feed SAM2, CoTracker3, or both โ plus one-off mask-only clicks (Ctrl+Shift+Click) and Auto-Shift Instance mode.
Async GPU Engine
500ms debounced PreviewThread and multi-stage BatchProcessorThread keep the PyQt5 canvas silky smooth during heavy GPU inference.
Occlusion-Aware Pose
CoTracker3 outputs per-keypoint visibility flags natively; occluded joints remain draggable on canvas with manual visibility overrides in the sidebar.
Dockable Studio Layout
Float, snap, or collapse the Annotation, Processing, and Log docks across monitors โ layout persists automatically between runs.
YOLO 3-in-1 Dataset Manager
Auto-balancing train/val/test splits, Albumentations augmentations, and multithreaded polygon + bbox + keypoint export ready for Ultralytics.
Offline Synthetic Engine
Multiply small verified datasets via copy-paste compositing, histogram lighting matching, synchronized transforms, and visibility-aware synthetic occlusions.
Redesigned Midnight Slate PyQt5 Interface
Every control is engineered for high-speed human-in-the-loop labeling: complementary high-contrast point colors on top of masks, live opacity slider, and an integrated corner magnifier.
Live Processing Plan & ETA
Shows exact stages running for the current batch (Copy, SAM2, CoTracker3, Save) with per-frame progress and rolling ETA.
Precision Zoom & Magnifier
Hardware-smooth pan/zoom, live corner magnifier (Z), crosshair (C), grid (G), and auto-contrasted keypoint colors.
Annotations, Routing & Live Config
Track keypoint completion, override occlusion visibility, route models, adjust Mask α opacity (0โ100%) and point size live.
3-Page Setup Dialog
Sidebar navigation across Videos, Models, and Settings with persistent YAML defaults and instant session resume.
Studio Keyboard & Mouse Shortcuts
Press H inside AutoSegmentor anytime for the built-in cheatsheet.
Quickstart
Tested on Windows 11 and Ubuntu 22.04 / 24.04 with NVIDIA CUDA GPUs.
git clone --recursive https://github.com/thippeswammy/AutoSegmentor.git
cd AutoSegmentor
python -m venv .venv && source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
python install.py
python run_main.py --demo cat
Deep Technical Docs Live on GitHub Wiki
This site is dedicated to live demos and visual showcases. Full installation guides, architecture specs, and dataset references are maintained in one place on the GitHub Wiki.
Installation & Setup โ
Prerequisites, Windows 11 & Ubuntu setup, PyPI vs git clone, checkpoint paths, and GPU diagnostics.
StudioUser Guide & Shortcuts โ
Setup Launchpad walkthrough, dockable panels, Scalable Model Routing, Live Config, and full controls.
InternalsArchitecture & Pipeline โ
Call flow, Mermaid system diagram, async QThread model, package breakdown, and output specs.
DatasetsDataset Manager & Synthesis โ
YOLO 3-in-1 export configuration, Albumentations augmentations, and offline Synthetic Engine copy-paste.
WorkflowsDemos & Custom Workflows โ
Dynamic demo discovery, authoring custom session-state JSONs, and industrial/warehouse use cases.
SupportTroubleshooting & FAQ โ
Fixes for Linux Qt XCB libraries, GPU VRAM OOM tuning, CUDA wheels, and Git LFS media tips.