Giter VIP home page Giter VIP logo

hair-dye-android's Introduction

Hair Dye Android

hairicon

This android app is based on the Fritz tutorial. I changed the model to our own model. Currently, the hair can be colored to BLUE.

For model training part, refer to our repo.

Here is a post about this APP.

The network model was proposed by Alex L. Cheng C, etc. 'Real-time deep hair matting on mobile devices'

ML model

I first convert our Pytorch model to tensorflow GraphDef model(end with .pb) by using ONNX and ONNX-TF. Then generate the Tensorflow Lite FlatBuffer file(.tflite) from a Tensorflow model(.pb). The model is placed in /app/src/main/assets/converted_model_hairnet.tflite.

Requirements

  • Android Studio 3.2 or above
  • Android device in developer model (USB debugging enabled)

Getting Started

Step 1: Clone / Fork this repository and open the HairColoringApp in Android Studio

git clone https://github.com/quq99/hair-dye-android.git

In Android Studio, choose "Open an existing Android Studio project" and select hair-dye-android.

Step 2: Build the Android Studio Project

First, "File->Sync Project with Gradle Files" to sync the gradle dependencies. Then, select "Build > Make Project" from the top nav. Download any missing libraries if applicable.

Step 3: Install the app onto your device

With your Android device connected, select Run > Run App from the top nav. When running the app for the first time, you'll have to give permissions to access the camera. After the app is installed and running, point your camera at someone's hair to automatically color it.

Thanks

  • Thanks for Fritz Framework.

hair-dye-android's People

Contributors

quq99 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.