Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
David 32e8bf3c67 | 1 year ago | |
---|---|---|
scripts | 1 year ago | |
src | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
eval.py | 1 year ago | |
eval_log.txt | 1 year ago | |
requirements.txt | 1 year ago | |
suwen-1.0.1-py3-none-any.whl | 1 year ago | |
train.py | 1 year ago | |
train_log.txt | 1 year ago | |
unet3d.ckpt | 1 year ago |
3DUNet was proposed in 2016, it is a type of neural network that directly consumes volumetric images. The 3DUNet extends the previous u-net architecture by replacing all 2D operations with their 3D counterparts. The implementation performs on-the-fly elastic deformations for efficient data augmentation during training. It is trained end-to-end from scratch, i.e., no pre-trained network is required.
Paper: Çiçek, Özgün, et al. "3D U-Net: learning dense volumetric segmentation from sparse annotation." International conference on medical image computing and computer-assisted intervention. Springer, Cham, 2016.
The 3DUNet segementation network takes n 3D volumetric images as input, applies input and feature transformations. BN is introdued before each ReLU.
Dataset used: MM-WHS, 3d-Covid-segmentation.
MM-WHS
Covid-19 CT image dataset (3D)
Dataset size: 3.5G
suwen package
pip install -r requirements.txt
pip install ./suwen-1.0.1-py3-none-any.whl
After installing MindSpore via the official website, you can start training and evaluation as follows:
# enter script dir, train PointNet
sh run_train_ascend.sh
# enter script dir, evaluate PointNet
sh run_eval.sh
.
└── 3dUNet
├── README.md
├── UNet3d.ckpt
├── eval.py
├── eval_log.txt
├── requirements.txt
├── scripts
│ ├── run_eval.sh
│ └── run_train_ascend.sh
├── src
│ ├── __init__.py
│ ├── config.py
│ ├── convert_nifti.py
│ ├── dataset.py
│ ├── dice_metric.py
│ ├── loss.py
│ ├── lr_schedule.py
│ ├── transform.py
│ └── utils.py
├── suwen-1.0.1-py3-none-any.whl
├── train.py
└── train_log.txt
Major parameters in train.py are as follows:
--data_path: The absolute full path to the train and evaluation datasets.
--seg_path : The absolute full path to the train and evaluation segmentation labels.
--ckpt_path: The absolute full path to the checkpoint file saved after training.
More hyperparamteters can be modified in src/config.py.
running on Ascend
sh run_train_ascend.sh
After training, the loss value will be achieved as what in train_log.txt
The model checkpoint will be saved in the current ckpt directory.
Before running the command below, please check the checkpoint path used for evaluation.
running on Ascend
sh scripts/run_eval.sh
You can view the results through the file "eval_log". The accuracy of the test dataset will be as what in eval_log.txt.
Parameters | |
---|---|
Resource | Ascend 910; CPU 2.60GHz, 24cores; Memory, 96G |
uploaded Date | 11/15/2021 (month/day/year) |
MindSpore Version | 1.3.0 |
Dataset | MM-WHS |
Training Parameters | epoch=600, steps=, batch_size = , lr= |
Optimizer | Adam |
Loss Function | Softmax Cross Entropy |
outputs | probability |
Loss | SoftmaxCrossEntropyWithLogits |
Speed | 212.469 ms/step- |
Total time | 3399.497 ms |
Checkpoint for Fine tuning | 56M (.ckpt file) |
Parameters | |
---|---|
Resource | Ascend 910; CPU 2.60GHz, 24cores; Memory, 96G |
uploaded Date | 05/29/2021 (month/day/year) |
MindSpore Version | 1.3.0 |
Dataset | MM-WHS |
batch_size | 1 |
outputs | probability |
Dice | 85.08% |
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》