Skip to content

This is an ML model to segment hairs in pictures.

License

Notifications You must be signed in to change notification settings

hadilq/hair-segment

Repository files navigation

Hair Segmentation

This is an ML model to segment hairs in pictures.

Replicate

The code used to publish to Replicate is in the replicate directory.

Training

The Neural network, that is used to crop the part of image that has hair, is a fine-tuned model based on Yolo8x-seg.

Post process

In the post process, it uses k-means clustering, followed by BFS on similar pixels, to separate hair pixels.

Colab

You can play around with the implementation in the Google Colab. Notice, its .ipynb file is also saved in this repository if you prefer local Jupyter lab instance.

About

This is an ML model to segment hairs in pictures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages