068-weakpolyp-you-only-look-bounding-box-for-polyp-segmentation

https://github.com/szu-advtech-2024/068-weakpolyp-you-only-look-bounding-box-for-polyp-segmentation

Science Score: 41.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: SZU-AdvTech-2024
  • Default Branch: main
  • Size: 0 Bytes
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Citation

https://github.com/SZU-AdvTech-2024/068-WeakPolyp-You-Only-Look-Bounding-Box-for-Polyp-Segmentation/blob/main/

## [WeakPolyp: You Only Look Bounding Box for Polyp Segmentation](https://arxiv.org/pdf/2307.10912.pdf)
by Jun Wei, Yiwen Hu, Shuguang Cui, S.Kevin Zhou, Zhen Li

## Introduction
![framework](./figure/framework.png)
Limited by expensive pixel-level labels, polyp segmentation models are plagued by data shortage and suffer from impaired generalization. In contrast, polyp bounding box annotations are much cheaper and more accessible. Thus, to reduce labeling cost, we propose to learn a weakly supervised polyp segmentation model (i.e., WeakPolyp) completely based on bounding box annotations. However, coarse bounding boxes contain too much noise. To avoid interference, we introduce the mask-to-box (M2B) transformation. By supervising the outer box mask of the prediction instead of the prediction itself, M2B greatly mitigates the mismatch between the coarse label and the precise prediction. But, M2B only provides sparse supervision, leading to non-unique predictions. Therefore, we further propose a scale consistency (SC) loss for dense supervision. By explicitly aligning predictions across the same image at different scales, the SC loss largely reduces the variation of predictions. Note that our WeakPolyp is a plug-and-play model, which can be easily ported to other appealing backbones. Besides, the proposed modules are only used during training, bringing no computation cost to inference. Extensive experiments demonstrate the effectiveness of our proposed WeakPolyp, which surprisingly achieves a comparable performance with a fully supervised model, requiring no mask annotations at all.

## Clone repository
```shell
git clone https://github.com/weijun88/WeakPolyp
cd WeakPolyp/
```

## Download dataset
The training and testing datasets come from [VPS](https://github.com/GewelsJI/VPS). Download these datasets and unzip them into the folder `WeakPolyp/dataset`.

## Download pretrained model
Two different backbone networks are adopted, please download these models into the `pretrain` folder
- [pvt_v2_b2](https://drive.google.com/drive/folders/1Eu8v9vMRvt-dyCH0XSV2i77lAd62nPXV?usp=sharing)
- [res2net50](https://drive.google.com/file/d/1_1N-cx1UpRQo7Ybsjno1PAg4KE1T9e5J/view?usp=sharing) 


## File tree
```
WeakPolyp
 dataset
    SUN-SEG
        TestEasyDataset
           Seen
              Frame
              GT
           Unseen
               Frame
               GT
        TestHardDataset
           Seen
              Frame
              GT
           Unseen
               Frame
               GT
        TrainDataset
            Frame
            GT
 figure
    framework.png
    performance.png
    visualization.png
 pretrain
    pvt_v2_b2.pth
    res2net50_v1b_26w_4s-3cf99910.pth
 readme.md
 source
     model.py
     pvtv2.py
     res2net.py
     test.py
     train.py
     utils.py
```


## Training
- Resize all images into 352x352 
- Generate box labels from the masks
- Train the model
```shell
    cd source
    python3 train.py
```

## Testing
- Test the performance of WeakPolyp
```shell
    python3 test.py
```

## Predictions
- `dataset/SUN-SEG.zip` contains the masks of `TestEasyDataset` and `TestHardDataset`, predicted by WeakPolyp. We provide these results for evaluation.

## Performance & Visualization
- Quantitative comparisons

![performace](./figure/performance.png)

- Qualitative comparisons

![sample](./figure/visualization.png)


## Citation
- If you find this work is helpful, please cite our paper
```
@inproceedings{wei2023weakpolyp,
  title={WeakPolyp: You only Look Bounding Box for Polyp Segmentation},
  author={Wei, Jun and Hu, Yiwen and Cui, Shuguang and Zhou, S Kevin and Li, Zhen},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  pages={757--766},
  year={2023},
  organization={Springer}
}
```

Owner

  • Name: SZU-AdvTech-2024
  • Login: SZU-AdvTech-2024
  • Kind: organization

Citation (citation.txt)

@inproceedings{REPO068,
    author = "Wei, Jun and Hu, Yiwen and Cui, Shuguang and Zhou, S Kevin and Li, Zhen",
    booktitle = "International Conference on Medical Image Computing and Computer-Assisted Intervention",
    organization = "Springer",
    pages = "757--766",
    title = "{WeakPolyp: You only Look Bounding Box for Polyp Segmentation}",
    year = "2023"
}

GitHub Events

Total
  • Push event: 2
  • Create event: 3
Last Year
  • Push event: 2
  • Create event: 3