GithubHelp home page GithubHelp logo

gzzgz / fast_portrait_segmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lizhengwei1992/fast_portrait_segmentation

0.0 2.0 0.0 78.54 MB

Fast (aimed to "real time") Portrait Segmentation on mobile phone

Python 100.00%

fast_portrait_segmentation's Introduction

Fast_Portrait_Segmentation

Fast (aimed to "real time") Portrait Segmentation at mobile phone

This project is not normal semantic segmentation but focus on real-time protrait segmentation.All the experimentals works with pytorch.

I hope to find a effcient network which can run on mobile phone. Currently, successfull application of person body/protrait segmentation can be find in APP like SNOW&B612, whose technology is proposed by a Korea company Nalbi.

Models

  • Encoder : mobilenet_v2(os: 32)

    Decoder : unet(concat low level feature) use dilate convolution at different stage(d = 2, 6, 12, 18)

  • Encoder : shufflenet

    Decoder : skip connection (add low level feature)

  • esp_dense_seg[20][10][15][19]

  • Attention model is a potential module in the segmentation task. I use a very light residual-dense net as the backbone of the Context Path. The details about fussion of last features in Contxt Path is not clear in the paper(BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation).

  • Segmentation + Matting [7][12][15]

    Hard segmentation + Soft matting.(coming soon)

Speed Analysis

โšก Real-time ! ! ! ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Platform : ncnn.

Mobile phone: Samsung Galaxy S8+(cpu).

model size (M) time(ms)
model_seg_matting 3.3 ~40

Result Examples

HUAWEI Mate 20 released recently can keep color on human and make the bacgrand gray in real time (click to view ). I test my model using cpu on my MAC, getting some videos here.

References

papers

fast_portrait_segmentation's People

Contributors

lizhengwei1992 avatar

Watchers

James Cloos avatar Laplace_Monster 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.