The code is for the paper "Rethinking and Improving Few-Shot Segmentation from a Contour-Aware Perspective"
COCO/
includes scripts for COCO-20i datasetFSS/
includes scripts for FSS-1000 datasetVOC/
includes scripts for Pascal-5i dataset
And for each folder:
model/
includes related models and modulesstore/
includes pretrained models under 1-shot settingothers/
includes script of loss functions
python == 3.9, torch == 1.9, numpy, einops, opencv-python
Related datasets Pascal-5i / COCO-20i / FSS-1000 can be found in Google Driver
- Specify the path of datasets in get_data.py
- Specify the path of pre-trained models in the test file
- Use the following command
python Test.py/train.py