Giter Club home page Giter Club logo

docr's Introduction

๐Ÿ“„ Domain Specific Convolution and High Frequency Reconstruction based Unsupervised Domain Adaptation for Medical Image Segmentation (DoCR)

Data Preparation

The dataset used in this study (RIGA+) can be downloaded from Zenodo.

You should download the dataset and unzip it.

Dependency Preparation

cd DoCR
# Python Preparation
virtualenv .env --python=3
source .env/bin/activate
# Install PyTorch, compiling PyTorch on your own workstation is suggested but not needed.
# Follow the instructions on https://pytorch.org/get-started/locally/
pip install torch torchvision # or other command to match your CUDA version
# Install DoCR
pip install -e .

Model Training and Inference

# Path Preparation
export OUTPUT_FOLDER="YOUR OUTPUT FOLDER"  # cannot be ended with '/'
export RIGAPLUS_DATASET_FOLDER="RIGA+ DATASET FOLDER"  # cannot be ended with '/'

# Target Domain - Base 1
DoCR_train --model DoCR --gpu 0 --tag Base1 \
--log_folder $OUTPUT_FOLDER \
--root $RIGAPLUS_DATASET_FOLDER \
--tr_csv $RIGAPLUS_DATASET_FOLDER/BinRushed_train.csv \
$RIGAPLUS_DATASET_FOLDER/BinRushed_test.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_train.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_test.csv \
--tu_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base1_unlabeled.csv \
--ts_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base1_test.csv 

# Target Domain - Base 2
DoCR_train --model DoCR --gpu 0 --tag Base2 \
--log_folder $OUTPUT_FOLDER \
--root $RIGAPLUS_DATASET_FOLDER \
--tr_csv $RIGAPLUS_DATASET_FOLDER/BinRushed_train.csv \
$RIGAPLUS_DATASET_FOLDER/BinRushed_test.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_train.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_test.csv \
--tu_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base2_unlabeled.csv \
--ts_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base2_test.csv 

# Target Domain - Base 3
DoCR_train --model DoCR --gpu 0 --tag Base3 \
--log_folder $OUTPUT_FOLDER \
--root $RIGAPLUS_DATASET_FOLDER \
--tr_csv $RIGAPLUS_DATASET_FOLDER/BinRushed_train.csv \
$RIGAPLUS_DATASET_FOLDER/BinRushed_test.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_train.csv \
$RIGAPLUS_DATASET_FOLDER/Magrabia_test.csv \
--tu_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base3_unlabeled.csv \
--ts_csv $RIGAPLUS_DATASET_FOLDER/MESSIDOR_Base3_test.csv 

Citation โœ๏ธ ๐Ÿ“„

If you find this repo useful for your research, please consider citing the paper as follows:

@inproceedings{hu2022domain,
  title={Domain Specific Convolution and High Frequency Reconstruction based Unsupervised Domain Adaptation for Medical Image Segmentation},
  author={Shishuai Hu and Zehui Liao and Yong Xia},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year={2022},
  organization={Springer}
}

Acknowledgements

  • The code of Fourier Transform is adopted from FDA.

docr's People

Contributors

shishuaihu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zzx0836 woldier

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.