This repo is the official implementation of the CVPR 2022 paper: Integrative Few-Shot Learning for Classification and Segmentation.
If you find our code or paper useful, please consider citing our paper:
@inproceedings{kang2022ifsl,
author = {Kang, Dahyun and Cho, Minsu},
title = {Integrative Few-Shot Learning for Classification and Segmentation},
booktitle= {Proceedings of the {IEEE/CVF} Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2022}
}
This project is built upon the following environment:
The package requirements can be installed via environment.yml
, which includes
pytorch
==1.7.0torchvision
==0.8.1cudatoolkit
==11.0.3pytorch-lightning
==1.3.8einops
==0.3.0
conda env create --name ifsl_pytorch1.7.0 --file environment.yml -p YOURCONDADIR/envs/ifsl_pytorch1.7.0
conda activate ifsl_pytorch1.7.0
Make sure to replace YOURCONDADIR
in the installation path with your conda dir, e.g., ~/anaconda3
Download the datasets by following the file structure below and set args.datapath=YOUR_DATASET_DIR
:
YOUR_DATASET_DIR/
├── VOC2012/
│ ├── Annotations/
│ ├── JPEGImages/
│ ├── ...
├── COCO2014/
│ ├── annotations/
│ ├── train2014/
│ ├── val2014/
│ ├── ...
├── ...
We follow the dataset protocol of HSNet and PFENet.
Our project refers to and heavily borrows some the codes from the following repos:
- [PANet]: Wang et al., Few-shot image semantic segmentation with prototype alignment, ICCV'19.
- [PFENet]: Tian et al., Prior guided feature enrichment network for few-shot segmentation, TPAMI'20.
- [HSNet]: Min et al., Hypercorrelation squeeze for few-shot segmentation, ICCV'21.
This work was supported by Samsung Advanced Institute of Technology (SAIT) and also by Center for Applied Research in Artificial Intelligence (CARAI) grant funded by DAPA and ADD (UD190031RD). We also thank Ahyun Seo and Deunsol Jung for their helpful discussion.