ICFormer: Transformer with Inverse-Attention and Contrastive Learning for Polyp Segmentation
-
You can refer to the work of MICCAI2020 https://github.com/DengPingFan/PraNet for related datasets.
-
Please follow the Section 4.1 of the paper to properly split your dataset.
-
After splitting the dataset, update the corresponding path in
train.py
andtest.py
accordingly.
-
Download the model parameter files:
- The parameter will be released as soon.
-
Place the downloaded
mit_b4.pth
andThe_best_Epoch.pth
files in the appropriate paths:- Place
mit_b4.pth
in thelib/backbone/
(recommended path). - Place
The_best_Epoch.pth
in theexperiment/exp_icformer_1/
(recommended path).
- Place
-
(Optional) You can update the file paths in the code for these parameters:
- In
/lib/network/network_demo2.py
, set the path formit_b4.pth
. - In
test.py
, set the path forThe_best_Epoch.pth
.
- In