Learn from Foundation Model: Fruit Detection Model without Manual Annotation

Yanan Wang, Zhenghao Fei, Ruichen Li, Yibin Ying
11/25/2024
cs.CVcs.LG

Official code: AgRoboticsResearch/SDM-D (25 stars, Apache-2.0, last commit 2025-12-12).

Abstract

Recent breakthroughs in large foundation models have enabled the possibility of transferring knowledge pre-trained on vast datasets to domains with limited data availability. Agriculture is one of the domains that lacks sufficient data. This study proposes a framework to train effective, domain-specific, small models from foundation models without manual annotation. Our approach begins with SDM (Segmentation-Description-Matching), a stage that leverages two foundation models: SAM2 (Segment Anything in Images and Videos) for segmentation and OpenCLIP (Open Contrastive Language-Image Pretraining) for zero-shot open-vocabulary classification. In the second stage, a novel knowledge distillation mechanism is utilized to distill compact, edge-deployable models from SDM, enhancing both inference speed and perception accuracy. The complete method, termed SDM-D (Segmentation-Description-Matching-Distilling), demonstrates strong performance across various fruit detection tasks object detection, semantic segmentation, and instance segmentation) without manual annotation. It nearly matches the performance of models trained with abundant labels. Notably, SDM-D outperforms open-set detection methods such as Grounding SAM and YOLO-World on all tested fruit detection datasets. Additionally, we introduce MegaFruits, a comprehensive fruit segmentation dataset encompassing over 25,000 images, and all code and datasets are made publicly available at https://github.com/AgRoboticsResearch/SDM-D.git.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
252Shell, PythonNov 22, 202410 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2024learn,
  title  = {Learn from Foundation Model: Fruit Detection Model without Manual Annotation},
  author = {Yanan Wang and Zhenghao Fei and Ruichen Li and Yibin Ying},
  year   = {2024},
  eprint = {2411.16196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.16196v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.16196.svg)](https://codeofpaper.com/paper/2411.16196)

Discussion