🏷️ YOLO Inlay HintsYOLO Inlay Hints is a professional-grade visualization and productivity extension for VS Code, specifically engineered for the Computer Vision annotation workflow. It bridges the gap between raw ML annotation data (Class IDs) and human-readable context, enabling instant validation, navigation, and debugging within complex annotation datasets. Designed for high-performance environments, the extension ensures zero-latency feedback while working with large multi-folder YOLO datasets. 🎥 Visual Demo
Example:
Becomes:
🚀 Key FeaturesContextual LabelingInstantly maps cryptic Class IDs (e.g.,
Hints appear dynamically within valid YOLO annotation files. Intelligent File DiscoveryThe extension automatically locates your mapping file (
This allows flexible dataset structures without manual configuration. Jump-to-Definition (Navigation Provider)Hold:
on a Class ID to immediately open the mapping file at the exact definition line. Contextual Hover & MetadataHover over any inlay hint to view metadata including:
This helps confirm which dataset configuration is currently active. Dataset ValidationIf a Class ID is missing from the mapping file, the extension shows a Warning Inlay Hint, allowing instant debugging of annotation integrity. Example:
🛠️ Technical ArchitectureThis extension implements robust, production-grade engineering patterns suitable for professional ML pipelines. Cross-Platform File System APIUses the VS Code URI-based filesystem API (
Race Condition MitigationImplements Cancellation Tokens to safely cancel background tasks when VS Code requests termination. This prevents:
Asynchronous Disk I/O CachingA Map-based caching layer stores file contents in memory, reducing disk reads and ensuring zero-latency editor interaction. Content-Based ValidationA built-in schema validator ensures hints activate only in valid YOLO annotation files. Required format:
Example:
⚙️ Extension Configuration
📦 InstallationInstall directly from the VS Code Marketplace.
📁 Usage
Hints will appear automatically. Example Dataset
🧠 Typical Workflow
🤝 ContributingContributions are welcome. If you'd like to improve the extension:
📄 LicenseMIT License |
