Giter Site home page Giter Site logo

rhfeiyang / i2pnet_segformer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kleinzcy/csfpn

0.0 0.0 0.0 214 KB

using segformer as backbone for "Intention-aware Information Propagation Network for Interactive Segmentation"

Python 99.25% Cython 0.57% Shell 0.18%

i2pnet_segformer's Introduction

Intention-aware Feature Propagation Network for Interactive Segmentation (segformer backbone)

Here is the code for training and evaluation. Before that, you need to prepare data by downloading from the following link:

Dataset Description Download Link
MS COCO 118k images with 1.2M instances (train) official site
COCO+LVIS* 99k images with 1.5M instances (train) original LVIS images +
our combined annotations
SBD 8498 images with 20172 instances for (train)
2857 images with 6671 instances for (test)
official site
Grab Cut 50 images with one object each (test) GrabCut.zip (11 MB)
Berkeley 96 images with 100 instances (test) Berkeley.zip (7 MB)
DAVIS 345 images with one object each (test) DAVIS.zip (43 MB)
Pascal VOC 1449 images with 3417 instances (validation) official site
COCO_MVal 800 images with 800 instances (test) COCO_MVal.zip (127 MB)

After downloading the data, please change the paths to the datasets in config.yml.

Training

  1. Train coarse level network
python train_coarse.py models/iter_mask/coarse_segformer_cocolvis_itermask_3p.py --workers 4 --exp-name segformer_coarse --gpus 0
  1. Train fine level network
python train_fine.py models/iter_mask/fine_segformer_cocolvis_itermask_3p.py --workers 4 --int-model segformer_corase --exp-name segformer_fine --gpus 0

Evaluation

python scripts/evaluate_model.py --intention ./experiments/iter_mask/resnet34/hrnet_coarse/checkpoints/last_checkpoint.pth --segmentation ./experiments/iter_mask/resnet34/hrnet_fine/checkpoints/last_checkpoint.pth --datasets GrabCut,Berkeley

Due to the double blind and file size limitation, we can't provide the pretrained checkpoint now. We will provide the pretrained checkpoint later.

Performance

img.png

i2pnet_segformer's People

Contributors

hcyang-null avatar rhfeiyang avatar kleinzcy 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.