DLTTA: Dynamic Learning Rate for Test-time Adaptation on Cross-domain Medical Images
April 11, 2023 ยท View on GitHub
Pytorch implementation for TMI paper DLTTA: Dynamic Learning Rate for Test-time Adaptation on Cross-domain Medical Images, by Hongzheng Yang, Chen Cheng, Meirui Jiang, Quande Liu, Jianfeng Cao, Pheng-Ann Heng, Qi Dou.
Abstract

Files
In this repository, we provide the implementation of our dynamic learning rate method on OCT dataset. The ATTA and Tent implementation were adopted from their official implementation. (Tent, ATTA)
To reproduce results on Camelyon17 and Prostate datasets, please refer to the experiments folder.
Datasets
The OCT dataset can downloaded from here.
The Camelyon17 dataset can be downloaded from here.
The Prostate dataset can be downloaded from here.
Usage
-
create conda environment
conda create -n DLTTA python=3.7 conda activate DLTTA -
Install dependencies:
- install pytorch==1.7.0 torchvision==0.9.0 (via conda, recommend)
-
download the dataset
-
download the pretrained model from google drive
-
modify the corresponding data path and model path in test.sh
-
run test.sh to adapt the model
Citation
If this repository is useful for your research, please cite:
@article{2022DLTTA,
title={DLTTA: Dynamic Learning Rate for Test-time Adaptation on Cross-domain Medical Images},
author={Hongzheng Yang, Cheng Chen, Meirui Jiang, Quande Liu, Jianfeng Cao, Pheng Ann Heng, Qi Dou},
year={2022}
}
Questions
Please feel free to contact 'hzyang05@gmail.com' if you have any questions.