Coder Social home page Coder Social logo

liuguoyou / recurrent-pixel-embedding-for-instance-grouping Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aimerykong/recurrent-pixel-embedding-for-instance-grouping

0.0 3.0 0.0 24.72 MB

embedding and grouping pixels into boundary, proposal, segment and object instance.

Home Page: http://www.ics.uci.edu/~skong2/SMMMSG.html

MATLAB 48.86% C++ 10.95% Java 0.05% Makefile 0.80% TeX 7.22% Python 4.63% CSS 0.26% JavaScript 0.03% HTML 0.33% Cuda 24.39% C 0.96% Shell 1.51% M 0.02%

recurrent-pixel-embedding-for-instance-grouping's Introduction

Recurrent Pixel Embedding for Instance Grouping

For paper, slides and poster, please refer to our project page

alt text

We introduce a differentiable, end-to-end trainable framework for solving pixel-level grouping problems such as instance segmentation consisting of two novel components. First, we regress pixels into a hyper-spherical embedding space so that pixels from the same group have high cosine similarity while those from different groups have similarity below a specified margin. We analyze the choice of embedding dimension and margin, relating them to theoretical results on the problem of distributing points uniformly on the sphere. Second, to group instances, we utilize a variant of mean-shift clustering, implemented as a recurrent neural network parameterized by kernel bandwidth. This recurrent grouping module is differentiable, enjoys convergent dynamics and probabilistic interpretability. Backpropagating the group-weighted loss through this module allows learning to focus on only correcting embedding errors that won't be resolved during subsequent clustering. Our framework, while conceptually simple and theoretically abundant, is also practically effective and computationally efficient. We demonstrate substantial improvements over state-of-the-art instance segmentation for object proposal generation, as well as demonstrating the benefits of grouping loss for classification tasks such as boundary detection and semantic segmentation.

keywords: Pixel Embedding, Recurrent Grouping, Boundary Detection, Object Proposal Detection, Instance Segmentation, Semantic Segmentation, Maximum Margin, Metric Learning, Hard Pixel Pair Mining, Distributing Many Points on a (Hyper-) Sphere, Mean Shift Clustering, Recurrent Networks, Mode Seeking, von Mises Fisher Distribution, Robust Loss, Instance-aware Pixel Weighting, non-parametric model, etc.

Several demos are included as below. As for details on the training, demo and code, please go into each demo folder.

  1. demo 1: a tutorial for learning the embedding hypersphere and mean shift grouping. We use instance segmentation as example, and include useful visualization functions. [Ready];
  2. demo 2: boundary detection on BSDS500 dataset (also including code, model, visualization) [Ready];
  3. demo 3: objectness proposal detection on PASCAL VOC2012 dataset [TODO];
  4. demo 4: instance-level segmentation on PASCAL VOC2012 dataset [TODO].
  5. demo 5: analysis of Mean Shift gradient. [Ready]

Please download those models from the google drive.

MatConvNet is used in our project, and some functions are changed/added. Please compile accordingly by adjusting the path --

LD_LIBRARY_PATH=/usr/local/cuda/lib64:local matlab 

path_to_matconvnet = './libs/matconvnet-1.0-beta23_modifiedDagnn/';
run(fullfile(path_to_matconvnet, 'matlab', 'vl_setupnn'));
addpath(fullfile(path_to_matconvnet, 'matlab'));
vl_compilenn('enableGpu', true, ...
               'cudaRoot', '/usr/local/cuda', ...
               'cudaMethod', 'nvcc', ...
               'enableCudnn', true, ...
               'cudnnRoot', '/usr/local/cuda/cudnn/lib64') ;

If you find our model/method/dataset useful, please cite our work (draft at arxiv):

@inproceedings{kong2018grouppixels,
  title={Recurrent Pixel Embedding for Instance Grouping},
  author={Kong, Shu and Fowlkes, Charless},
  booktitle={2018 Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2018}
}

alt text

last update: 03/08/2018

Shu Kong

aimerykong At g-m-a-i-l dot com

recurrent-pixel-embedding-for-instance-grouping's People

Contributors

aimerykong avatar

Watchers

刘国友 avatar  avatar paper2code - bot 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.