8000 GitHub - MGAMZ/AutoWindow: MGAM's experimental repo for analyzing training performance at early stage.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MGAMZ/AutoWindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpretable Auto Window Setting for Deep-Learning-Based CT Analysis

Official Implementations Preview V1.0

Pre-requisites

This research heavily relies on our mgamdata package, the AutoWindow Module can be found in Gitee Repo.

Environment Setup

export mm_workdir="..." # runner workdir
export mm_testdir="..." # runner testdir
export mm_configdir="..." # runner configdir
export supported_models="SegFormer3D,MedNeXt" # supported models

Data Preparation

Source Data

/root/data
├── image
│   ├── 00001.nii
│   ├── 00002.nii
│   ├── 00003.nii
│   └── ...
│
└── label
    ├── 00001.nii
    ├── 00002.nii
    ├── 00003.nii
    └── ...

Preprocess

Resample

itk_resample \
    /root/data \
    /root/data_resampled \
    --mp \
    --spacing 2 1 1 # ZYX (You may change to your own spacing)

Patch

split3d \
    /root/data_resampled \
    /root/data_patched \
    --window-size 16 \
    --stride 8 \
    --mp

The desired data structure

/root
├── data
│   ├── image
│   │   ├── 00001.nii
│   │   ├── 00002.nii
│   │   ├── 00003.nii
│   │   └── ...
│   └── label
│       ├── 00001.nii
│       ├── 00002.nii
│       ├── 00003.nii
│       └── ...
│
├── data_resampled
│   ├── image
│   │   ├── 00001.mha
│   │   ├── 00002.mha
│   │   ├── 00003.mha
│   │   └── ...
│   └── label
│       ├── 00001.mha
│       ├── 00002.mha
│       ├── 00003.mha
│       └── ...
│
└── data_patched
    ├── 00001
    │   ├── 0.npz
    │   ├── 1.npz
    │   ├── 2.npz
    │   └── ...
    ├── 00002
    │   ├── 0.npz
    │   ├── 1.npz
    │   ├── 2.npz
    │   └── ...
    ├── 00003
    │   ├── 0.npz
    │   ├── 1.npz
    │   ├── 2.npz
    │   └── ...
    └── ...

Configuration

You may have to modify the config file according to specify your dataset path. All configs are stored in configs/ folder. If you do not want to run the implementation, the configs can provide sufficient information for you to understand the implementation.

Run

mmrun {ConfigVersionPrefix}

Email

For any questions, please contact us via email:

Yiqin Zhang (Corresponding Author)

About

MGAM's experimental repo for analyzing training performance at early stage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0