Skip to content

Unsupervised Image-to-Image Translation by Matching the Characteristics of Images

License

Notifications You must be signed in to change notification settings

adigasu/ResCycleGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matching the Characteristics of Fundus and Smartphone Camera Images

ISBI 2019 [ResCycleGAN]

Fundus imaging with a Smartphone camera (SC) is a cost-effective solution for the assessment of retina. However, imaging at high magnification and low light levels, results in loss of details, uneven illumination and noise especially in the peripheral region. We address these problems by matching the characteristics of images from SC to those from a regular fundus camera (FC) with an architecture called ResCycleGAN. It is based on the CycleGAN with two significant changes: A residual connection is introduced to aid learning only the correction required; A structure similarity based loss function is used to improve the clarity of anatomical structures and pathologies. The proposed method can handle variations seen in normal and pathological images, acquired even without mydriasis, which is attractive in screening. The method produces consistently balanced results, outperforms CycleGAN both qualitatively and quantitatively, and has more pleasing results.

Overview of proposed ResCycleGAN architecture:

Dependencies

This code depends on the following libraries:

  • Keras >= 2.0
  • keras_contrib >= 1.2.1
  • Theano = 0.9.0

Code should be compatible with Python versions 2.7-3.5. (tested in python2.7)

Datasets

Place the data in below path for mapping A<-->B

  • A dataset in ./datasets/A_to_B/trainA
  • B dataset in ./datasets/A_to_B/trainB

Training

The model can be trained to reproduced with command:

python2.7 ResCycleGAN.py

Test

  • Place the test set for A to B mapping (A->B) in ./datasets/A_to_B/testA

  • weights for ResCycleGAN is placed in ./weights for testing

To test:

python2.7 test_ResCycleGAN.py

Results will be stored inside ./images

Citation

If you find this code useful for your research, please cite:

@inproceedings{adiga2019matching,
  title={Matching The Characteristics Of Fundus And Smartphone Camera Images},
  author={Adiga, V Sukesh and Sivaswamy, Jayanthi},
  booktitle={2019 IEEE 16th International Symposium on Biomedical Imaging (ISBI 2019)},
  pages={569--572},
  year={2019},
  organization={IEEE}
}

References

Any questions?

For more informations, please contact Sukesh Adiga (sukesh.adiga@gmail.com).

License

This project is licensed under the terms of the MIT license.

Releases

No releases published

Packages

No packages published

Languages