Git Product home page Git Product logo

3d-cps's Introduction

3D-CPS

Codes for the paper: "3D Cross-Pseudo Supervision (3D-CPS): A semi-supervised nnU-Net architecture for abdominal organ segmentation" by Yongzhi Huang*, Hanwen Zhang*, Yan Yan and Haseeb Hassan.

3D-CPS

Dataset and Challenge

Fast and Low-resource semi-supervised Abdominal oRgan sEgmentation in CT (FLARE 2022)

Usage

Our framework is based on nnU-Net, so we strongly recommend you have a look at the repository of nnU-Net before starting with our code.

Dataset Conversion

nnU-Net expects datasets in a structured format like the data structure of the Medical Segmentation Decthlon. The first step is to build dataset.json using dataset_convErsion.TaskXXX_TASKNAME.py.

Experiment planning and preprocessing

We follow the network structure and other hyper-parameter settings automatically generated by nnU-Net, so the default ExperimentPlanner is enough.

python nnUNet_plan_and_preprocess.py -t TASK_ID --ssl

If you want to change any properties related to models or training hyper-parameters, you can inherit and override Class ExperimentPlanner3D_v21/ExperimentPlanner2D_v21, and modify the Class Trainer (In our work, it's nnUNetTrainerV2_SSL) accordingly. For more details, please refer to this guide in the nnU-Net repository.

python nnUNet_plan_and_preprocess.py -t TASK_ID -p YOUR_EXP_PLANNER --ssl

Model training

  • 2D version:

    python run_training.py 2d nnUNetTrainerV2_SSL TASK_ID FOLD

  • 3D version:

    python run_training.py 3d_fullres nnUNetTrainerV2_SSL TASKID FOLD

Inference

  • 2D version

    python predict_simple.py -i INPUT_DIR -o OUTPUT_DIR -f FOLD -t TASK_ID -m 3d_fullres -tr nnUNetTrainerV2_SSL -p nnUNetPlansv2.1 -chk model_best

  • 3D version:

    python predict_simple.py -i INPUT_DIR -o OUTPUT_DIR -f FOLD -t TASK_ID -m 2d -tr nnUNetTrainerV2_SSL -p nnUNetPlansv2.1 -chk model_best

Reference

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.