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
conda activate ifsl_pytorch1.7.0
Make sure you need to replace YOURCONDAROOTDIR in the installation path with your own root dir
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: