Skip to content

User Guide and Shortcuts

github-actions[bot] edited this page Nov 30, 2026 · 2 revisions

User Guide and Shortcuts

AutoSegmentor provides a Midnight Slate PyQt5 desktop studio (autosegmentor/ui/UITheme.py) built around two primary windows: the Setup Launchpad (SetupDialog) and the dockable Annotation Studio (AnnotationWindow).

Looking for an interactive searchable shortcut explorer and studio visual tour? Visit thippeswammy.github.io/AutoSegmentor/#shortcuts.


1. Setup Launchpad (python run_main.py)

Running python run_main.py without --demo launches the three-page sidebar configuration dialog:

  • Videos: Configure the input video path template (e.g. ./workspace/VideoInputs/Video{}.mp4), start ID and count range, maximum frame limit (0 = full video), output root, working directory, and post-run working directory cleanup toggle.
  • Models: Enable/disable SAM2 mask generation and auto-prompt encoding; toggle CoTracker3 (learned) or Lucas-Kanade (optical-flow fallback) pose tracking; select checkpoint paths; and configure per-class keypoint names (either auto-generated p1..pN via the Auto Keypoints spinner or custom names via + Add / - Del / double-click rename).
  • Settings: Tune filename prefix, GPU Batch Size (default 30; reduce to 8–16 for 6–8 GB GPUs), output FPS, pipeline mode (all, mask_only, pose_only), and Review Mode (start at frame 0).

Save Defaults persists your configuration into workspace/inputs/config/default_config.yaml. ▶ Launch Pipeline saves workspace/inputs/config/session_state.json and launches the studio.


2. Annotation Studio Layout

AnnotationWindow hosts an embedded QMainWindow with freely movable, floatable, and collapsible docks (persisted across runs via QSettings; re-open closed docks via View → Panels):

  • Top Toolbar: Shortcuts cheatsheet (H), batch/frame navigation, Reset (R), Toggle Mask (M), Class selector (1–10), Instance readout, Frame Jump box, and ▶ Process Batch (Enter).
  • Central Canvas: Pan/zoom canvas with automatic complementary point colors (contrasting against every class mask color), optional crosshair (C), alignment grid (G), and corner zoom magnifier (Z).
  • Annotation Dock (Right):
    • Navigation: Current batch/frame index, zoom level, and batch progress bar.
    • Current Tool: Active mode (Segment / Pose), class color dot, and instance ID.
    • Annotations: Live list of placed foreground (+) and background (−) coordinates.
    • Keypoints (pose mode): Per-keypoint completion checklist (○ / ▸ / ✓) with manual Vis occlusion override checkboxes.
    • Model Routing: Per-click routing for Mask (SAM) and Pose (CoTracker) plus Auto-Shift Instance.
    • Live Config: Real-time Mask α opacity slider (0–100%), Pt Size (2–20 px), and Propagate Backward toggle for mid-batch refinements.
    • Export Dataset: Opens ExportDialog (Ctrl+E).
  • Processing Dock (Left): Displays the exact per-batch stage checklist (Copy frames, SAM2 mask generation, CoTracker point tracking, Save tracked keypoints) with live per-frame counts and rolling per-stage ETA estimates.
  • Log Dock (Bottom): Timestamped VS Code–style console log accumulating status messages across batches.

3. Scalable Model Routing

Choose per click whether points feed SAM2, CoTracker3, or both:

Shortcut Action
Shift + S Toggle routing to SAM2 (segmentation mask)
Shift + P Toggle routing to CoTracker3 (pose keypoints)
Shift + A Route to all models
Shift + N Route to none
Ctrl + Shift + LClick / RClick One-off mask-only foreground/background point (bypasses pose skeleton)

4. Complete Keyboard & Mouse Shortcuts

Press H inside the studio at any time to display the built-in shortcut overlay.

Navigation

Action Control
Previous frame (hold to scroll) A or ←
Next frame (hold to scroll) D or →
Previous batch [
Next batch ]
Jump to specific frame Enter frame number in Jump box + Enter

Annotation & Editing

Action Control
Add foreground (positive) point Ctrl + LClick
Add background (negative) point Ctrl + RClick
Add mask-only foreground / background point Ctrl + Shift + LClick / Ctrl + Shift + RClick
Move point / correct drifted keypoint Shift + LClick drag
Delete point or toggle keypoint visibility RClick on point → context menu
Undo Ctrl + Z or U
Redo Ctrl + Y
Reset all points on current frame R
Skip current pose keypoint Space
Switch class (1–9) 1 – 9
Next / Previous instance Tab / Shift + Tab

Processing & Export

Action Control
Process current batch (SAM2 + CoTracker3) Enter
Save annotation progress Ctrl + S
Open YOLO Dataset Export dialog Ctrl + E
Save and finish manual annotation phase Ctrl + Return
Close window Ctrl + W
Quit without saving Ctrl + Q

View Controls

Action Control
Toggle mask overlay M
Toggle crosshair C
Toggle alignment grid G
Toggle corner zoom magnifier Z
Zoom in / Zoom out + / - or Mouse Wheel
Pan canvas LClick drag or MClick drag
Show shortcuts cheatsheet H