Git Product home page Git Product logo

rgc-semi-seg's Introduction

RGC-Semi-Seg

This is the repository for our paper Reducing Manual Labeling Requirements and Improved Retinal Ganglion Cell Identification in 3D AO-OCT Volumes Using Semi-supervised Learning.

We are currently adding more documentation.

Please cite the papers listed at the end of this document if you use any component of this repository.

Installation

Install with the conda environment.yml file:

conda env create -f environment.yml
conda activate RGC-Semi-Seg

Dataset

Download the WeakGCSeg [ref] dataset from https://people.duke.edu/~sf59/Soltanian_Optica_2021.htm.

Put the data into the folder "\data". Then run the following command to organize the data files.

python tools/reorganize_data.py

The folder should now have the following structure:

.
├── ...
├── data
│   ├── IU
│   ├── FDA
│   ├── all                # Organized Folder
│   ├── ├── images
│   ├── ├── labels
│   ├── └── 2nd grader
│   ├── gc_layers_all.json
│   └── ...
└── ...

Train

To train the model, simply run:

python main.py --data_cfg ./cfg/data/dataset_iu.yaml --model_cfg ./cfg/model/hyp.semi_seg_cps_iu.yaml --batch_size 8 --resume_training

The configuration files used here are for training with the RGC-CPS method using the IU dataset with the 1/7 labeling scenario. Other configurations for different training methods demonstrated in the paper can be found in "/cfg/model". Configurations for different data/label settings can be found in "/cfg/data".

Evaluate

The training pipeline will automatically perform an evaluation at the end (if "--no_test" not set). However, if one would like to evaluate a trained model only, simply run:

python main.py --data_cfg ./cfg/data/dataset_iu.yaml --model_cfg ./cfg/model/hyp.semi_seg_cps_iu.yaml --no_train

To evaluate the inter-grader variability, please use the script "tools/measure_2nd_grader.py". Only a few arguments (e.g. dataset name, targeted retinal locations) need to be identified.

Citation

Please cite the following papers if you use any component of this repository.

Mengxi Zhou, Yue Zhang, Amin Karimi Monsefi, Stacey S. Choi, Nathan Doble, Srinivasan Parthasarathy, and Rajiv Ramnath, "Reducing manual labeling requirements and improved retinal ganglion cell identification in 3D AO-OCT volumes using semi-supervised learning," Biomed. Opt. Express 15, 4540-4556 (2024)

Somayyeh Soltanian-Zadeh, Kazuhiro Kurokawa, Zhuolin Liu, Furu Zhang, Osamah Saeedi, Daniel X. Hammer, Donald T. Miller, and Sina Farsiu, "Weakly supervised individual ganglion cell segmentation from adaptive optics OCT images for glaucomatous damage assessment," Optica 8, 642-651 (2021)

rgc-semi-seg's People

Contributors

simonzmx avatar

Stargazers

 avatar

Watchers

 avatar

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.