Binary Segmentation - PraNet-V2

April 17, 2025 ยท View on GitHub

๐Ÿ“Œ Overview

Welcome to the binary segmentation hub of PraNet-V2! ๐Ÿฅโœจ

This directory contains everything you need for training, testing, and inference on polyp segmentation tasks. If you're looking for accurate medical image segmentation, you're in the right place! ๐Ÿ’ช๐ŸŽ‰

๐Ÿ“‚ Directory Structure

binary/
โ”œโ”€โ”€ models/                  # Pre-trained models
โ”œโ”€โ”€ data/                    # Datasets (see the main README for details)
โ”œโ”€โ”€ snapshots/               # Checkpoints saved during training
โ”œโ”€โ”€ MyTrain_med.py           # Training script
โ”œโ”€โ”€ MyTest_med.py            # Testing/inference script
โ”œโ”€โ”€ eval.py                  # Evaluation script
โ”œโ”€โ”€ utils/                   # Utility functions
โ””โ”€โ”€ README.md                # This file

๐Ÿš€ How to Run

Training

python -W ignore MyTrain_med.py --model_type PraNet-V2

Inference

python -W ignore MyTest_med.py

Evaluation

python -W ignore eval.py

๐Ÿ“ฅ Dataset Download

To get started, download the dataset by following the instructions in the main README and place it in binary/data/.

๐Ÿ† Citation

If you find our work useful, please consider citing us! ๐Ÿ†๐Ÿ‘‡

@article{hu2025pranet2,
  title={PraNet-V2: Dual-Supervised Reverse Attention for Medical Image Segmentation},
  author={Hu, Bo-Cheng and Ji, Ge-Peng and Shao, Dian and Fan, Deng-Ping},
  journal   = {arXiv preprint arXiv:2504.10986},
  year={2025},
  url       = {https://arxiv.org/abs/2504.10986}
}