xianlin7 / APFormer

24 stars 3 forks source link

APFormer

This repo is the official implementation for:\ The Lighter The Better: Rethinking Transformers in Medical Image Segmentation Through Adaptive Pruning.\ (The details of our APFormer can be found at the models directory in this repo or in the paper.)

Requirements

Datasets

Training

Commands for training on the ISIC 2018 dataset

python train_ISIC.py

Commands for training on the Synapse dataset

python train_synapse.py

Testing

Commands for training on the Synapse dataset

python test.py

References

  1. vit-pytorch