Code Monkey home page Code Monkey logo

fss-1000's Introduction

FSS-1000: A 1000 Class Dataset for Few-shot Segmentation

We provide our dataset and PyTorch implementation for relation network benchmark. Details are in our paper.

Prerequisites

  • Linux or macOS
  • Python 3
  • CPU or NVIDIA GPU + CUDA CuDNN
  • PyTorch 0.4+

FSS-1000 Dataset

Getting Started

Testing

First, download pretrained model here.

python autolabel.py -sd imgs/example/support -td imgs/example/query
  • Set option -sd to the support directory and the script will input them as support set.
  • Set option -td to the path of your query images.
  • Results will be saved under ./results

Testing your own data

  • Label 5 support images following the format in imgs/example/support/.
  • Set your support and query path accordingly.

Training

Arrange the dataset as described in get_oneshot_batch() in training.py, then run

python training.py

Citing

If you use this repository, dataset or want to reference our work, please use the following BibTeX entry.

@article{FSS1000,
Author = {Xiang Li and Tianhan Wei and Yau Pun Chen and Yu-Wing Tai and Chi-Keung Tang},
Title = {FSS-1000: A 1000-Class Dataset for Few-Shot Segmentation},
Year = {2020},
Journal = {CVPR},
}

fss-1000's People

Contributors

hkustcv 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.