Giter Club home page Giter Club logo

sharifamit / fundus2angio Goto Github PK

View Code? Open in Web Editor NEW
7.0 0.0 5.0 4.84 MB

[ISVC'20] [Tensorflow] Generating Fluroscein Angiography from Fundus Photography using Conditional GAN

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
deep-learning gan generative-adversarial-network conditional-gan style-transfer image-to-image-translation medical-imaging retinal-fundus-images retinal-fundus-photographs angiography retinal-angiography fluorescein-angiography keras keras-tensorflow tensorflow2 tensorflow

fundus2angio's Introduction

ISVC2020 Fundus2Angio

PWC

This code is part of the supplementary materials for the ISVC 2020 for our paper Fundus2Angio: A Conditional GAN Architecture for Generating Fluorescein Angiography Images from Retinal Fundus Photography . The paper has since been accpeted to ISVC 2020 and will be preseneted in October 2020.

Arxiv Pre-print

https://arxiv.org/abs/2005.05267

Citation

@inproceedings{kamran2020fundus2angio,
  title={Fundus2Angio: A Conditional GAN Architecture for Generating Fluorescein Angiography Images from Retinal Fundus Photography},
  author={Kamran, Sharif Amit and Hossain, Khondker Fariha and Tavakkoli, Alireza and Zuckerbrod, Stewart and Baker, Salah A and Sanders, Kenton M},
  booktitle={International Symposium on Visual Computing},
  pages={125--138},
  year={2020},
  organization={Springer}
}

Virtual Oral Presentation (YouTube)

IMAGE ALT TEXT HERE

Pre-requisite

  • Ubuntu 18.04 / Windows 7 or later
  • NVIDIA Graphics card

Installation Instruction for Ubuntu

sudo apt-get install pip3 python3-dev
  • Install Tensorflow-Gpu version-2.0.0 and Keras version-2.3.1
sudo pip3 install tensorflow-gpu==2.0.3
sudo pip3 install keras==2.3.1
  • Install packages from requirements.txt
sudo pip3 -r requirements.txt

Dataset download link for Hajeb et al.

https://sites.google.com/site/hosseinrabbanikhorasgani/datasets-1/fundus-fluorescein-angiogram-photographs--colour-fundus-images-of-diabetic-patients
  • Please cite the paper if you use their data
@article{hajeb2012diabetic,
  title={Diabetic retinopathy grading by digital curvelet transform},
  author={Hajeb Mohammad Alipour, Shirin and Rabbani, Hossein and Akhlaghi, Mohammad Reza},
  journal={Computational and mathematical methods in medicine},
  volume={2012},
  year={2012},
  publisher={Hindawi}
}
  • Folder structure for data pre-processing given below. Please make sure it matches with your local repository.
├── Dataset
|   ├──ABNORMAL
|   ├──NORMAL

Dataset Pre-processing

  • Type this in terminal to run the random_crop.py file
python3 random_crop.py --output_dir=data --input_dim=512 --datadir=Dataset
  • There are different flags to choose from. Not all of them are mandatory.
    '--input_dim', type=int, default=512
    '--n_crops', type=int, default=50
    '--datadir', type=str, required=True, help='path/to/data_directory',default='Dataset'
    '--output_dir', type=str, default='data'   

NPZ file conversion

  • Convert all the images to npz format
python3 convert_npz.py --outfile_name=fundus2angio --input_dim=512 --datadir=data --n_crops=50
  • There are different flags to choose from. Not all of them are mandatory.
    '--input_dim', type=int, default=512
    '--n_crops', type=int, default=50
    '--datadir', type=str, required=True, help='path/to/data_directory',default='data'
    '--outfile_name', type=str, default='fundus2angio'
    '--n_images', type=int, default=17

Training

  • Type this in terminal to run the train.py file
python3 train.py --npz_file=fundus2angio --batch=4 --epochs=100
  • There are different flags to choose from. Not all of them are mandatory
   '--npz_file', type=str, default='fundus2angio', help='path/to/npz/file'
   '--batch_size', type=int, default=4
   '--input_dim', type=int, default=512
   '--epochs', type=int, default=100

License

The code is released under the MIT License, you can read the license file included in the repository for details.

fundus2angio's People

Contributors

sharifamit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fundus2angio's Issues

FID

Hi
May you please share the code which computes FID for ground truth and generated angio images?

Article reproduction effect

Hello, dear professor! I've been working on your Fundus2Angio and VTGAN work recently, I'm very interested in your work and trying to reproduce the results in the paper.

However, I have encountered some difficulties at present, and I would like to ask you a question to solve it.

What I want to ask is which pictures did you use for testing and how many pictures did you use to calculate the FID score?

In addition, there is another problem that I set the parameters batchsize to 4 and epoch to 100, and select the model of the last epoch from the trained model to test 850 pictures (the training set is also 850 pictures), so the calculation My FID score is as high as 130, and I really encountered difficulties, so I would like to ask you for help.

If you can give me a reply in your busy schedule, I will be very grateful!

Broken Download link

Hello,
I tried to download your data from the provided link. However, it doesn't work. Could you provide an alternative source to download the data from?

predict()

hello professor, i have followed you and your fundus2angio for serveral months. i also read your article VTGAN, that's impress me a lot.
But in the code fundus2angio, i always meet errors in predict() in real_fake_data_loader.py and i cannot solve them. Pycharm told me it may caused by dimensions, but i have no idea. So i write issues on Github and ask for some advice.
thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.