This is the official code of the paper:
Automatic Ultra-Wide-Field Fundus Image Enhancement for Improved Clinical Diagnosis
- The dataset including FDUWI-1, FDUWI-2 subset can be accessed by sending a request to [email protected] with detailed reasons for usage.
- Organize dataset within the following manner:
|--datadir |--train |--A (low quality image_dir) photo1.jpg photo1.jpg ... |--B ( quality image_dir) photo1.jpg photo1.jpg ...
Prepare your pre-trained disease classification model and Change the model path of it in Line 200
of models.py
Run train.py
with
cd ./UWF-Net
python train.py --dataroot "HERE/IS/YOUR/DATADIR/" \
--save_dir "MODEL/SAVEDIR/"
- See here for model downloading.
- Change the path of FIQA model in
Line 22
offiqa.py
- Download UWFQA model from the release.
- Change the path of UWFQA model in
Line 34
ofuwfqa.py
Run test.sh
with
bash test.sh