The repository contains the PyTorch implementation of "Duplex Contextual Relations for PolypSegmentation"
Figure 1: Overview of our proposed DCRNet.
Figure 2: Qualitative results.
Figure 3: Quantitative results on EndoScene dataset.
Figure 4: Quantitative results on Kvasir-SEG dataset.
Figure 5: Quantitative results on PICCOLO dataset.
-
torch>=1.5.0
-
torchvision>=0.6.0
-
tqdm
-
scipy
-
scikit-image
-
PIL
-
numpy
-
CUDA
- Downloading the CVC-EndoSceneStill dataset, which can be found in this Google Drive link
- Downloading the Kvasir-SEG dataset, which can be found in this Google Drive link
- To access the PICCOLO dataset, please visit here
- Assign your customized path of
--train_path
,--save_root
and--gpu
inTrain.py
. - Run
python Train.py
- Assign the
--pth_path
,--data_root
,--save_root
and--gpu
inTest.py
. - Run
python Test.py
- The quantitative results will be displayed in your screen, and the qualitative results will be saved in your customized path.
- The evaluation code is stored in ./utils/eval.py
- You can replace it with your customized evaluation metrics.