How verlab/accelerated_features works
Main Components Identification
The system can be broken down into these major components:
a) Core Model Components:
• Feature Detector
• Descriptor Extractor
• Match Refinement Module
b) Supporting Infrastructure:
• Training Pipeline
• Evaluation System
• Dataset Management
• Inference Pipeline
┌─ Input Layer ─────┐ ┌─ Core Processing ──────┐ ┌─ Output Layer ─┐
• ┌─ Detection Branch ─┐ │ │ │
• Image Input ────┼───►│ │ Keypoint Map │ │ │ Keypoints │
• (B,3,H,W) │ │ └──────────────────┬─┘ │ │ Descriptors │
• ┌─ Feature Branch ─┤ │───►│ Reliability │
• Descriptor Map │ │ │ Scores │
• ┘ │ │ │
• ┘ └──────────────────────┬──┘ └───────────────┘
• ┌─────────────────────┐ │
• Match Refinement │◄┘
• Module (Optional) │
• ┘
┌─ Training System ───────┐ ┌─ Inference System ────┐ ┌─ Evaluation ─────┐
• Data Augmentation │ │ - XFeat Core Model │ │ - MegaDepth1500 │
• Loss Functions │ │ - LighterGlue │ │ - ScanNet1500 │
• Training Utils │ │ - Real-time Demo │ │ - Metrics │
• ┘ └─────────────────────┬──┘ └─────────────────┘
• ┌─────────────────────┴──┐
• Dataset Management │
• MegaDepth │
• COCO │
• ┘
Important Elements
b) Component Labels:
• Processing stage names
• Key parameters (e.g., descriptor dimension: 64D)
c) Integration Points:
• LighterGlue connection
• Dataset interfaces
• Training pipeline connections
Implementation Details
modules/
• dataset/ # Data management
• eval/ # Evaluation tools
• training/ # Training pipeline
• xfeat.py # Core model
• lighterglue.py # Matcher integration