Skip to content

Tomhouxin/mobile_phone_human_matting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobile_phone_human_matting

This project provides training and testing codes to build real_time human mattig on mobile phone only based CPU. Anather repo (Fast_Portrait_Segmentation) show more details about whence the project.

requirements

  • python3.5 / 3.6
  • pytorch 0.4/0.4.1
  • opencv-python

Usage

train

you need to prepare dataset and run ./train.sh.

test

use pre_trained model ./pre_train/erd_seg_matting.

test camera, you need a camera, run ./camera.sh. test image, run ./test.sh.

Speed Analysis

Platform : ncnn.

(use this tools convert the pytorch model to ncnn.)

Mobile phone: Samsung Galaxy S8+(cpu).

model size (M) time(ms)
erd_seg_matting 3.4 ~40

Demo video on my iphone 6 (baiduyun)

References

paper

repos

About

human matting on mobile phone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.5%
  • Shell 4.5%