Touch-Up Hair with Generative AI, LangChain, Stable Diffusion and Gemini


Touch-Up the Hair Roots and Changing the Hair Color of an Image using Stable Diffusion, ControlNet, Mediapipe, KMeans, Streamlit, Gemini, LangChain and Flask.
This Generative AI App, using the Realistic Vision Stable Diffusion with ControlNet, KMeans and Mediapipe, can succesfully Touch-Up the Hair Roots of an Image based on the Dominant Hair Color of the Picture.
This is a project programmed with Python, that uses Gemini-Flash as LLM to create a Agent with LangChain, Streamlit for the Frontend, Flask for the Backend , Generative AI, the model of Stable Diffusion Realistic Vision with ControlNet to change or modify the color of the hair or the hair roots of a person in a image.
The Application can also change the Hair Color of the person, to the color that the user wants. The Fronted was built with Streamlit and the Backend with Flask.
Preview
- App Preview: https://youtu.be/suQHBEilZnU?si=BdIIfbIl87ApbNce
Connect
Subscribe to my newsletter
Read articles from Luis Jose Mendez directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Luis Jose Mendez
Luis Jose Mendez
Hello! My name is Luis Jose, a Current Student at Bicentenaria Aragua University, Venezuela, purchasing a Systems Engineer Degree with Specialization in Artificial Intelligence. Apassionate in Machine Learning, Deep Learning and Computer Vision.