FunOTTA: On-the-Fly Adaptation on Cross-Domain Fundus Image via Stable Test-time Training

Qian Zeng, Le Zhang, Yipeng Liu, Ce Zhu, Fan Zhang
7/5/2024
cs.CVcs.AI

Official code: Casperqian/FunOTTA (13 stars, PyTorch, last commit 2025-11-24).

Abstract

Fundus images are essential for the early screening and detection of eye diseases. While deep learning models using fundus images have significantly advanced the diagnosis of multiple eye diseases, variations in images from different imaging devices and locations (known as domain shifts) pose challenges for deploying pre-trained models in real-world applications. To address this, we propose a novel Fundus On-the-fly Test-Time Adaptation (FunOTTA) framework that effectively generalizes a fundus image diagnosis model to unseen environments, even under strong domain shifts. FunOTTA stands out for its stable adaptation process by performing dynamic disambiguation in the memory bank while minimizing harmful prior knowledge bias. We also introduce a new training objective during adaptation that enables the classifier to incrementally adapt to target patterns with reliable class conditional estimation and consistency regularization. We compare our method with several state-of-the-art test-time adaptation (TTA) pipelines. Experiments on cross-domain fundus image benchmarks across two diseases demonstrate the superiority of the overall framework and individual components under different backbone networks. Code is available at https://github.com/Casperqian/FunOTTA.

View on arXivView PDF

Code Implementations(1)

Casperqian/FunOTTAOfficial100%
PyTorch
131Shell, PythonOct 30, 202411 months ago
pytorchtest-time-adaptation

Similar Papers

Cite this paper

@article{zeng2024funotta,
  title  = {FunOTTA: On-the-Fly Adaptation on Cross-Domain Fundus Image via Stable Test-time Training},
  author = {Qian Zeng and Le Zhang and Yipeng Liu and Ce Zhu and Fan Zhang},
  year   = {2024},
  eprint = {2407.04396},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04396v3}
}

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/2407.04396.svg)](https://codeofpaper.com/paper/2407.04396)

Discussion