Code for our ICCV 2019 paper PANet: Few-Shot Image Semantic Segmentation with Prototype Alignment
This repo contains code for our ICCV 2019 paper PANet: Few-Shot Image Semantic Segmentation with Prototype Alignment.
Download
SegmentationClassAug,
SegmentationObjectAug,
ScribbleAugAutofrom here and put them under
VOCdevkit/VOC2012.
Download
Segmentationfrom here and use it to replace
VOCdevkit/VOC2012/ImageSets/Segmentation.
Download the ImageNet-pretrained weights of VGG16 network from
torchvision: https://download.pytorch.org/models/vgg16-397923af.pth and put it under
PANet/pretrained_modelfolder.
Change configuration via
config.py, then train the model using
python train.pyor test the model using
python test.py. You can use
sacredfeatures, e.g.
python train.py with gpu_id=2.
Please consider citing our paper if the project helps your research. BibTeX reference is as follows.
@InProceedings{Wang_2019_ICCV, author = {Wang, Kaixin and Liew, Jun Hao and Zou, Yingtian and Zhou, Daquan and Feng, Jiashi}, title = {PANet: Few-Shot Image Semantic Segmentation With Prototype Alignment}, booktitle = {The IEEE International Conference on Computer Vision (ICCV)}, month = {October}, year = {2019} }