Skip to content

It's the official project of GPMA-Net: A Gated Pyramid Mixed Attention Network for Multi-organ Segmentation

License

Notifications You must be signed in to change notification settings

DAgalaxy/MGB-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MGB-Net

Usage

1. Get Google pre-trained ViT models

wget https://storage.googleapis.com/vit_models/imagenet21k/R50-ViT-B_16.npz &&
mkdir ../model/vit_checkpoint/imagenet21k &&
mv R50-ViT-B_16.npz ../model/vit_checkpoint/imagenet21k/R50-ViT-B_16.npz

2. Prepare data

The datasets we used are provided by TransUnet's authors. Please go to "./datasets/README.md" for details, or please send an Email to jienengchen01 AT gmail.com to request the preprocessed data. If you would like to use the preprocessed data, please use it for research purposes and do not redistribute it(following the TransUnet's License).

3. Environment

environment with python=3.7, and then run "pip install -r requirements.txt" for the dependencies.

4. Train/Test

  • Run the train script on synapse dataset. The batch size we used is 24, you can reduce it to match GPU memory (please also decrease the base_lr linearly).
python train.py --dataset Synapse --vit_name R50-ViT-B_16
  • Run the test script on synapse dataset. It supports testing for both 2D images and 3D volumes.
python test.py --dataset Synapse --vit_name R50-ViT-B_16

Reference

Citations

Yuan, F., Tang, Z., Wang, C.,Huang, Q., Shi, J.: A multiple gated boosting network for multi-organ medical image segmentation. IET Image Process. 1–12 (2023). https://doi.org/10.1049/ipr2.12852

About

It's the official project of GPMA-Net: A Gated Pyramid Mixed Attention Network for Multi-organ Segmentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages