This web application helps in trying out various shades of lipstick and hair-color on the uploaded image.
The method adopted is parsing different parts of the face using semantic segmentation.
The segmented image is then used to change the lip and hair color.
For training the semantic segmentation model refer this
Github code
-
Install NodeJS.
Refer to https://nodejs.org/en/ to install nodejs -
Install create-react-app.
Install create-react-app npm package globally. This will help to easily run the project and also build the source files easily. Use the following command to install create-react-appnpm install -g create-react-app
-
Clone project from GitHub.
Change to the directory face_segmentation. -
Install packages
Inside front-end and backend folders install their respective packages. -
Run both front-end and backend applications. Open http://localhost:3000 to view it in the browser.