Giter VIP home page Giter VIP logo

mhp-vos's Introduction

MHP-VOS

Code for CVPR 19 paper

MHP-VOS: Multiple Hypotheses Propagation for Video Object Segmentation
[Paper] [Representation] [Video Results]

Pipeline

In this work, we first obtain bounding box proposals from Mask RCNN, and then construct the proposal propagation tree for each object with gating and scoring strategies. To avoid calculation explosion, an N-scan pruning strategy is applied to remove branches that are far from the best hypothesis. Through this recurrent process between tree building and branches pruning, we can obtain the best propagation track, and then obtain the segmentation mask for each object by mask propagation and merging.

Introduction

we have 5 parts as following:

  1. python2.7 + pycuda: pylucid
  2. python2.7 + caffe: flownet2
  3. python3.5 + pytorch0.3.1: mask-rcnn
  4. python3.5 + pytorch0.4.1: deeplabv3+
  5. Python 3.6 + pytorch0.4.1: mht

1-4 in folder libs

5 in folder mht

For more details, please refer to the README.md file in each folder

Inference

To show the perfomance of our tracking tree, we give an example inference on the carousel(test-dev) video. First of all, please download the prepare file and unzip it under the current folder. GoogleDrive BaiDuYun (code:2xwv)

The structure of prepare file looks like:

|--prepare

|----DAVIS_2017 #contains carousel video
|------Annotations
|------ImageSets
|------JPEGImages

|----deeplab_model #contains the [deeplabv3+](https://github.com/jfzhang95/pytorch-deeplab-xception) models of each carousel object
|------carousel_1_99.pth
|------carousel_2_99.pth
|------carousel_3_99.pth
|------carousel_4_99.pth

|----mask_rcnn_result #contains the bbox proposals generated from the [mask-rcnn](https://github.com/multimodallearning/pytorch-mask-rcnn)
|------carousel.json

|----osvos_result #contains the segmentation results using osvos model
|------carousel

|----test_flow #contains optical flows generated with [flownet2](https://github.com/lmb-freiburg/flownet2)
|------carousel

Run the following code:

$ cd mht
$ python test_mht.py

and it will generate three folders (vis_detections, outs and final_results)

|--mht
|----vis_detections #detection bbox
|----outs #build tree for each objects
|----final results #tracking results

Or you can just run the main.py to see all the results including the final masks in $out$ file.

$ cd mht
$ python main.py

Citation

If you use this code please cite:

@inproceedings{xu2019mhp,
    title={MHP-VOS: Multiple Hypotheses Propagation for Video Object Segmentation},
    author={Xu, Shuangjie and Liu, Daizong and Bao, Linchao and Liu, Wei and Zhou, Pan},
    booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
    year={2019}
}

mhp-vos's People

Contributors

liudaizong avatar shuangjie-dev avatar shuangjiexu avatar

Stargazers

 avatar

Watchers

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