Giter VIP home page Giter VIP logo

panet's Introduction

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.

Dependencies

  • Python 3.6 +
  • PyTorch 1.0.1
  • torchvision 0.2.1
  • NumPy, SciPy, PIL
  • pycocotools
  • sacred 0.7.5
  • tqdm 4.32.2

Data Preparation for VOC Dataset

  1. Download SegmentationClassAug, SegmentationObjectAug, ScribbleAugAuto from here and put them under VOCdevkit/VOC2012.

  2. Download Segmentation from here and use it to replace VOCdevkit/VOC2012/ImageSets/Segmentation.

Usage

  1. Download the ImageNet-pretrained weights of VGG16 network from torchvision: https://download.pytorch.org/models/vgg16-397923af.pth and put it under PANet/pretrained_model folder.

  2. Change configuration via config.py, then train the model using python train.py or test the model using python test.py. You can use sacred features, e.g. python train.py with gpu_id=2.

Citation

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}
}

panet's People

Contributors

2448845600 avatar kaixin96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.