We present the Recognize Anything Model (RAM): a strong foundation model for image tagging. RAM can recognize any common category with high accuracy. RAM introduces a new paradigm for image tagging, leveraging large-scale image-text pairs for training instead of manual annotations. The development of RAM comprises four key steps. Firstly, annotation-free image tags are obtained at scale through automatic text semantic parsing. Subsequently, a preliminary model is trained for automatic annotation by unifying the caption and tagging tasks, supervised by the original texts and parsed tags, respectively. Thirdly, a data engine is employed to generate additional annotations and clean incorrect ones. Lastly, the model is retrained with the processed data and fine-tuned using a smaller but higher-quality dataset. We evaluate the tagging capabilities of RAM on numerous benchmarks and observe impressive zero-shot performance, significantly outperforming CLIP and BLIP. Remarkably, RAM even surpasses the fully supervised manners and exhibits competitive performance with the Google API. We are releasing the RAM at \url{https://recognize-anything.github.io/} to foster the advancements of large models in computer vision.
翻译:我们提出识别一切模型(RAM):一种用于图像标注的强大基础模型。RAM能够以高精度识别任意常见类别。该模型引入了一种全新的图像标注范式,利用大规模图像-文本对进行训练,而非人工标注。RAM的开发包含四个关键步骤。首先,通过自动文本语义解析,在大规模数据上获得无人工标注的图像标签。随后,通过统一描述任务与标注任务,分别以原始文本和解析得到的标签为监督信号,训练初始模型以实现自动标注。第三,利用数据引擎生成额外标注并修正错误标注。最后,使用处理后的数据重新训练模型,并采用更小但质量更高的数据集进行微调。我们在多个基准测试上评估了RAM的标注能力,观察到其零样本性能显著超越CLIP和BLIP,甚至优于全监督方法,并与谷歌API表现相当。为促进计算机视觉中大模型的发展,我们将RAM开源至 \url{https://recognize-anything.github.io/}。