YMIR: A Rapid Data-centric Development Platform for Vision Applications

Phoenix X. Huang, Wenze Hu, William Brendel, Manmohan Chandraker, Li-Jia Li, Xiaoyu WangarXiv 2021

Abstract

YMIR is an open-source, data-centric platform designed to scale the production of computer vision applications. By shifting the focus from model architecture to data quality and selection, YMIR integrates active learning, version control, and modular toolchains into a unified, Git-like workflow. This paper describes the system's architecture, its core operations—mining, labeling, and training—and its approach to managing large-scale vision datasets through optimized metadata and versioning.

Introduction

In computer vision research, datasets are often treated as static benchmarks, with progress measured by incremental gains in model accuracy. However, in industrial applications, the primary bottleneck is typically the data itself. Companies often possess vast quantities of raw, unannotated visual data, but the specific events of interest—such as safety violations or rare defects—are infrequent. Manually labeling entire datasets is prohibitively expensive and slow.

YMIR (You Mine In Recursion) addresses this "needle in a haystack" problem by providing a platform that semi-automates the active learning loop. It enables teams to efficiently mine the most valuable data, manage annotations, and iterate on models at an industrial scale.

System Design and Workflow

YMIR abstracts the development process into a "State Space" consisting of datasets, models, and metadata. The platform is built around three primitive operations that form a recursive loop:

  1. Mining (Active Learning): A trained model scans unannotated data to identify high-value images for the next training round.
  2. Labeling: Mined images are sent to human annotators via integrated tools like Label Studio.
  3. Training: Newly labeled data is used to update the model using frameworks such as YOLOv4.
The YMIR active learning loop and branching workflow illustrating the relationship between training, mining, and labeling operations.

Technical Architecture

To ensure scalability and flexibility, YMIR employs a modular architecture decoupled via open APIs and Docker containers. This allows teams to swap default components for proprietary tools without disrupting the pipeline.

The multi-layered system architecture of YMIR, showing the separation between the application layer and the underlying infrastructure.

Key technical innovations include:

  • Optimized Version Control: YMIR utilizes DVC (Data Version Control) and Git but avoids performance bottlenecks by storing only metadata and asset keys in DVC, while raw assets reside in dedicated Key-Value storage.
  • Incremental Annotation Storage: Annotations are stored as individual, accumulative packages rather than monolithic files, facilitating faster updates and exports.

Data-Centric Philosophy

YMIR adopts a "Git for Data" approach, allowing teams to create branches for different tasks (e.g., "helmet detection" vs. "fire detection") using the same pool of raw images. This prevents interference between projects and allows for parallel experimentation.

The platform natively supports the PASCAL VOC format and is optimized for mining operations involving millions of images. By standardizing metadata—including operation parameters, timestamps, and data sources—YMIR ensures that the entire development history is searchable and reproducible.

Practical Outcomes and Future Directions

Internal pilot studies indicate significant productivity boosts for teams transitioning from manual workflows to YMIR’s integrated environment. The platform successfully hides the complexity of version control behind a user-friendly GUI while maintaining the robustness required for full-lifecycle data management.

Currently, YMIR is primarily optimized for object detection. Future work includes expanding support for image classification and semantic segmentation, developing more sophisticated rules for merging annotations from different branches, and utilizing project histories to perform meta-learning for optimized development paths.

Summary updated

BibTeX
@misc{huang2021ymir,
  author = {Phoenix X. Huang and Wenze Hu and William Brendel and Manmohan Chandraker and Li-Jia Li and Xiaoyu Wang},
  title = {{YMIR: A Rapid Data-centric Development Platform for Vision Applications}},
  year = {2021},
  eprint = {2111.10046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.10046},
}
Figure