How thippeswammy/autosegmentor works
AutoSegmentor turns video into reviewed, frame-level masks and optional tracked pose labels, then exports annotated results; DatasetManager separately prepares YOLO datasets and synthetic samples. The README documents the desktop-to-engine workflow and the SAM2/CoTracker roles. Source-index references support many internal calls, but several UI, engine, and export implementations were not sampled, so some subsystem relationships are documented rather than directly verified; unsampled capabilities are represented at their existing directory paths.
Main entry points: synthetic_pipeline.py Synthetic generation · AutoSegmentorEngine.py Annotation engine · pipeline.py Processing pipeline · sample_record.py Sample record
Components 26
Annotation application
- Desktop UI
AutoSegmentor/ui/MainWindow.py - Annotation engine
AutoSegmentor/core/AutoSegmentorEngine.py - Frame handling
AutoSegmentor/file_management/FrameHandler.py - Prompt annotations
AutoSegmentor/ui/AnnotationManager.py
Inference and tracking
- SAM configuration
AutoSegmentor/models/SAM/AppConfig.py - SAM2 loader
AutoSegmentor/models/SAM/SAM2Model.py - SAM2 video inference
external/segment_anything_2/sam2/sam2_video_predictor.py - SAM2 network
external/segment_anything_2/sam2/modeling/sam2_base.py - CoTracker tracking
AutoSegmentor/models/Tracking/CoTrackerPredictor.py - Checkpoint metadata
AutoSegmentor/models/model_info.py
Annotation outputs
- Processing pipeline
AutoSegmentor/pipeline.py - File management
AutoSegmentor/file_management/FileManager.py - Mask processing
AutoSegmentor/file_management/MaskProcessor.py - Pose export
AutoSegmentor/file_management/PoseExporter.py - Video creation
AutoSegmentor/file_management/VideoCreator.py
Dataset preparation
- YOLO dataset creation
DatasetManager/YolovDatasetManager/DatasetCreator.py - Pose conversion
DatasetManager/convert_to_yolo_pose.py
Synthetic data
- Synthetic generation
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Sample record
DatasetManager/SyntheticEngine/core/sample_record.py - Background pool
DatasetManager/SyntheticEngine/backgrounds/background_manager.py - Geometric augmentation
DatasetManager/SyntheticEngine/augmentation/geometric_augmentor.py - Copy-paste augmentation
DatasetManager/SyntheticEngine/augmentation/copy_paste_engine.py - Photometric augmentation
DatasetManager/SyntheticEngine/augmentation/photometric_augmentor.py - Occlusion simulation
DatasetManager/SyntheticEngine/augmentation/occlusion_simulator.py - YOLO writer
DatasetManager/SyntheticEngine/pipeline/yolo_writer.py
Other components
- Annotator
Connections 32
- Annotator → Desktop UI: annotates video
README.md - Desktop UI → Annotation engine: drives
README.md - Annotation engine → Frame handling: handles frames
AutoSegmentor/core/AutoSegmentorEngine.py - Annotation engine → Prompt annotations: reads prompts
AutoSegmentor/core/AutoSegmentorEngine.py - Annotation engine → SAM configuration: uses configuration
AutoSegmentor/core/AutoSegmentorEngine.py - Annotation engine → SAM2 loader: runs segmentation
AutoSegmentor/core/AutoSegmentorEngine.py - SAM2 loader → SAM2 video inference: loads predictor
AutoSegmentor/models/SAM/SAM2Model.py - SAM2 video inference → SAM2 network: uses network
external/segment_anything_2/sam2/sam2_video_predictor.py - Annotation engine → CoTracker tracking: tracks keypoints
AutoSegmentor/core/AutoSegmentorEngine.py - SAM configuration → Checkpoint metadata: reads checkpoint metadata
AutoSegmentor/models/SAM/AppConfig.py - SAM2 loader → Checkpoint metadata: reads checkpoint metadata
AutoSegmentor/models/SAM/SAM2Model.py - CoTracker tracking → Checkpoint metadata: reads checkpoint metadata
AutoSegmentor/models/Tracking/CoTrackerPredictor.py - Desktop UI → Processing pipeline: starts workflow
README.md - Processing pipeline → Annotation engine: runs annotation
AutoSegmentor/pipeline.py - Processing pipeline → Pose export: exports pose labels
AutoSegmentor/pipeline.py - Processing pipeline → Video creation: creates video
AutoSegmentor/pipeline.py - Processing pipeline → File management: manages output paths
AutoSegmentor/pipeline.py - Processing pipeline → Mask processing: processes masks
- Annotator → YOLO dataset creation: prepares dataset
README.md - YOLO dataset creation → Pose conversion: converts pose labels
- Annotator → Synthetic generation: generates samples
README.md - Synthetic generation → Sample record: loads records
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → Background pool: selects backgrounds
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → Geometric augmentation: transforms samples
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → Copy-paste augmentation: composites samples
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → Photometric augmentation: adjusts appearance
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → Occlusion simulation: simulates occlusion
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Synthetic generation → YOLO writer: writes labels
DatasetManager/SyntheticEngine/pipeline/synthetic_pipeline.py - Geometric augmentation → Sample record: updates record
DatasetManager/SyntheticEngine/augmentation/geometric_augmentor.py - Copy-paste augmentation → Sample record: composites record
DatasetManager/SyntheticEngine/augmentation/copy_paste_engine.py - Photometric augmentation → Sample record: transforms record
DatasetManager/SyntheticEngine/augmentation/photometric_augmentor.py - Occlusion simulation → Sample record: updates record
DatasetManager/SyntheticEngine/augmentation/occlusion_simulator.py