Object detection has wide applications in agriculture, but domain shifts of diverse environments limit the broader use of the trained models. Existing domain adaptation methods usually require retraining the model for new domains, which is impractical for agricultural applications due to constantly changing environments. In this paper, we propose DODA (iffusion for bject-detection omain Adaptation in griculture), a diffusion-based framework that can adapt the detector to a new domain in just 2 minutes. DODA incorporates external domain embeddings and an improved layout-to-image approach, allowing it to generate high-quality detection data for new domains without additional training. We demonstrate DODA's effectiveness on the Global Wheat Head Detection dataset, where fine-tuning detectors on DODA-generated data yields significant improvements across multiple domains. DODA provides a simple yet powerful solution for agricultural domain adaptation, reducing the barriers for growers to use detection in personalised environments. The code is available atthis https URL.
View on arXiv@article{xiang2025_2403.18334, title={ DODA: Adapting Object Detectors to Dynamic Agricultural Environments in Real-Time with Diffusion }, author={ Shuai Xiang and Pieter M. Blok and James Burridge and Haozhou Wang and Wei Guo }, journal={arXiv preprint arXiv:2403.18334}, year={ 2025 } }