hust-linyi / LENAS

This is the official code of the paper "LENAS: Learning-based Neural Architecture Search and Ensemble for 3D Radiotherapy Dose Prediction"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LENAS: Learning-based Neural Architecture Search and Ensemble for 3D Radiotherapy Dose Prediction

This is the official code for our paper:

LENAS: Learning-based Neural Architecture Search and Ensemble for 3D Radiotherapy Dose Prediction
Yi Lin*, Yanfei Liu*, Hao Chen, Xin Yang, Kai Ma, Yefeng Zheng, Kwang-Ting Cheng

Highlights

  • A learning-based ensemble framework, named LENAS, including the U-NAS framework which efficiently and automatically searches for optimal architectures, and a KDA-Net for the trade-off between the computational cost and accuracy.
  • First place in the AIMIS challenge.

Usage

Requirement

pip install -r requirements.txt

Data preparation

Training & Evaluation

U-NAS

  1. Prepare the data and modify the data path in config.yml.
cd /path_to_your_RTDosePrediction/RTDosePrediction/DataPrepare
python prepare_OpenKBP_C3D.py
  1. Search the architecture.
python Main.py

KDA-Net

  1. Training script (Take U-Net as an example).
cd /path_to_your_RTDosePrediction/RTDosePrediction/Unet
python train.py --batch_size 4 --list_GPU_ids 1 0 --max_iter 80000
  1. Inference script.
cd /path_to_your_RTDosePrediction/RTDosePrediction/Unet
python test.py --GPU_id 0
  • The prediction results are stored in /path_to_your_RTDosePrediction/RTDosePrediction/Output/unet/Prediction.

Details

Utils
  • DataPrepare
  • DataLoader
  • DataAugmentation
  • NetworkTrainer
  • Evaluate
Pre-Trained
  • Teachers: The pre-trained models used as teacher networks. XXX.pkl and XXX_geno.pkl are the weights and structures, respectively.
Models
  • Single Model:
    • Unet
    • Unet_CBAM
    • Vnet
    • FCN
    • DCNN(2D)
  • Cascade Models:
    • C3D
    • C3D_spacing (Resample the data in the data preparation stage)
    • ResC3D
    • ResC3D_CBAM
  • NAS Manual Model:
    • Manual_1-Manual_6 (See Appendix)
  • NAS Single Model:
    • NAS_18-NAS_42 (See Appendix)
  • KD Models:
    • KD

For each MAS Single Model, the best_genotype.pkl file is obtained by manually modifying the geno.py file and running it.

Citation

Please cite the paper if you use the code.

TO BE ADDED

About

This is the official code of the paper "LENAS: Learning-based Neural Architecture Search and Ensemble for 3D Radiotherapy Dose Prediction"

License:MIT License


Languages

Language:Python 100.0%