Giter Site home page Giter Site logo

thangtran480 / hair-segmentation Goto Github PK

View Code? Open in Web Editor NEW
242.0 242.0 62.0 265.64 MB

hair segmentation in mobile device

Home Page: https://arxiv.org/pdf/1712.07168.pdf

License: MIT License

Python 15.85% Jupyter Notebook 76.60% Kotlin 7.55%
android hair hairmatte hairsegmentaion realtime segmentation tflite

hair-segmentation's People

Contributors

gungui98 avatar thangtran480 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hair-segmentation's Issues

Use of multiple color

Hello,

Thanks for sharing this. We found your code very useful. Is it possible to have a different color other than purple for hair? Where can I find the exact piece of code for the same?

Regards,
Vidhi

How to apply color on Hair

I downloaded the source code, but when I pick an image from the gallery it is taking too much time to respond, and the other thing is there is no option to add color to Hair,
Please guide ...

Data to train

Hello @thangtran480
Your project seems to be very nice!
I've tried to train my own model there is no problem by using Figaro1K, but how did you use lfw images ?
Thanks :)

Android model?

Do you happen to know when you will release an Android model and demo? That could do hair segmentation in realtime.

Models are missing

Hi,

Thank you for your hard work, but in the commit of
"add train model with GPU
@thangtran480
thangtran480 committed on 6 Jun"

you deleted the folder called models with its files, can you reupload them in the latest version please ? :)

how to prepare image to predict mask

Hello.

As I see model learned on aligned faces.
All faces in center of image and most of it is normalized (see in one direction).

But what we need to do with any photo with face?
Do we need find, rotate, crop area of face before predict?
Or this library do it by themself?

color of hair

I want to classify hair color.

My first naive solution is cv2.mean(image, hair_mask) and find similarity to set of predefined colors.

What do you think about?

Extract hair region

How to extract the hair region from the original image after the hair is segmented? Once we predict the hair segmentation part, we are getting results like the purple color on hair which shows the detection part. but I want only segmented hair (with the original color of hair) and remove face and background. Can you guide me on how to manipulate pixels with OpenCV? @thangtran480 @gungui98

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.