• Stars
    star
    165
  • Rank 227,591 (Top 5 %)
  • Language
    Python
  • Created about 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code for Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentation.

CA-Net: Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentation

This repository provides the code for "CA-Net: Comprehensive attention Convolutional Neural Networks for Explainable Medical Image Segmentation". Our work now is available on Arxiv. Our work is accepted by TMI.

mg_net Fig. 1. Structure of CA-Net.

uncertainty Fig. 2. Skin lesion segmentation.

refinement

Fig. 3. Placenta and fetal brain segmentation.

Requirementss

Some important required packages include:

  • Pytorch version >=0.4.1.
  • Visdom
  • Python == 3.7
  • Some basic python packages such as Numpy.

Follow official guidance to install Pytorch.

Usages

For skin lesion segmentation

  1. First, you can download the dataset at ISIC 2018. We only used ISIC 2018 task1 training dataset, To preprocess the dataset and save as ".npy", run:
python isic_preprocess.py 
  1. For conducting 5-fold cross-validation, split the preprocessed data into 5 fold and save their filenames. run:
python create_folder.py 
  1. To train CA-Net in ISIC 2018 (taking 1st-fold validation for example), run:
python main.py --data ISIC2018 --val_folder folder1 --id Comp_Atten_Unet
  1. To evaluate the trained model in ISIC 2018 (we added a test data in folder0, testing the 0th-fold validation for example), run:
python validation.py --data ISIC2018 --val_folder folder0 --id Comp_Atten_Unet

Our experimental results are shown in the table: refinement

  1. You can save the attention weight map in the middle step of the network to '/result' folder. Visualizing the attention weight above the original images, run:
python show_fused_heatmap.py

Visualzation of spatial attention weight map: refinement

Visualzation of scale attention weight map: refinement

Citation

If you find our work is helpful for your research, please consider to cite:

@article{gu2020net,
  title={CA-Net: Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentation},
  author={Gu, Ran and Wang, Guotai and Song, Tao and Huang, Rui and Aertsen, Michael and Deprest, Jan and Ourselin, S{\'e}bastien and Vercauteren, Tom and Zhang, Shaoting},
  journal={IEEE Transactions on Medical Imaging},
  year={2020},
  publisher={IEEE}
}

Acknowledgement

Part of the code is revised from Attention-Gate-Networks.

More Repositories

1

SSL4MIS

Semi Supervised Learning for Medical Image Segmentation, a collection of literature reviews and code implementations.
Python
2,125
star
2

PyMIC

Python
334
star
3

DTC

Semi-supervised Medical Image Segmentation through Dual-task Consistency
Python
282
star
4

WSL4MIS

Scribbles or Points-based weakly-supervised learning for medical image segmentation, a strong baseline, and tutorial for research and application.
Python
197
star
5

SimpleCRF

matlab and python wrap of crf and dense crf, both 2d and 3d are supported
C++
162
star
6

WORD

[MedIA2022]WORD: A large scale dataset, benchmark and clinical applicable study for abdominal organ segmentation from CT image
Python
140
star
7

MIDeepSeg

[MedIA2021]MIDeepSeg: Minimally Interactive Segmentation of Unseen Objects from Medical Images Using Deep Learning
Python
120
star
8

DAG4MIA

Domain Adaptation and Generalization for Medical Image Analysis
Python
104
star
9

COPLE-Net

COVID-19 Pneumonia Lesion segmentation network
Python
87
star
10

ACELoss

Implementations of "Learning Euler's Elastica Model for Medical Image Segmentation"
Python
69
star
11

Paper-Reading-Group

List shared papers in our group
62
star
12

UGIR

Uncertainty-Guided Interactive Refinement for Segmentation
Python
56
star
13

SCPM-Net

[MICCAI2020]CPM-Net: A 3D Center-Points Matching Network for Pulmonary Nodule Detection in CT Scans
Python
54
star
14

CDMA

offical code for: Semi-supervised Pathological Image Segmentation via Cross Distillation of Multiple Attentions. MICCAI 2023.
Python
47
star
15

PyMIC_examples

examples of using PyMIC for medical image computing with deep learning
Python
29
star
16

SegRap2023

[SegRap2023]A challenge about organ-at-risk and gross-tumor-volume segmentation in adaptive radiotherapy hosted on MICCAI2023.
Python
23
star
17

UPL-SFDA

Python
21
star
18

SepNet

Code for Automatic Segmentation of Organs-at-Risk from Head-and-Neck CT using Separable Convolutional Neural Network with Hard-Region-Weighted Loss.
Python
20
star
19

LCOVNet-and-KD

Python
17
star
20

MyoPS2020

Python
16
star
21

PA-Seg

PA-Seg: Learning from Point Annotations for 3D Medical Image Segmentation using Contextual Regularization and Cross Knowledge Distillation
Python
14
star
22

Head-Neck-GTV

Python
14
star
23

FPL-plus

FPL+: Filtered Pseudo Label-based Unsupervised Cross-Modality Adaptation for 3D Medical Image Segmentation
Python
13
star
24

PF-Net

Code for PF-Net (Pulmonary Fibrosis Segmentation Network)
Python
10
star
25

HAMIL

Python
9
star
26

DCA-Net

Python
6
star
27

RPR-Loc

Python
5
star
28

CFENet

Code for Enhancement of High- and Low-Level Features with Improved Attention Method for Medical Image Segmentation
Jupyter Notebook
5
star
29

ABCs_2020

Python
1
star
30

IPLC

1
star