We all are very curious about comparing ourselfs to other. Imagine comparing your facial features with Bollywood celebrities to find your lookalike celeb.
Using MTCNN and VggFACE, created a webApp where you could upload your image and the model tells you to which Bollywood celeb your face lookalike to.
git clone https://github.com/EphronM/Celebrity_face_match.git
- Bollywood Celebrity Faces (images of 100 Bollywood celebrities)
- Combine all the folders into a single folder named
data
conda create -n face_env python=3.9 -y
conda activate face_env
- Installing the required dependencies
pip install -r requirements.txt
- Croping celeb face and saving it in
data cropped
python src\01_genreating_image_pickle.py
- Extracting features from all the images and saving the pickle file
python src\02_feature_extraction.py
We are using MTCNN as the face detector and VggFace prediction model to extract the feature similarities. Finally using Cosine Similarity, we find the similar celeb face.
streamlit run app.py
Lets give the model few real bollywood celeb look alikes peoples photos and see,
Works well with David Saharia
who is real life tiger shroff lookalike
Lets try it with the Amitabh Bachchan
transformed look.
worked good with 75% match.
This all about this project.
Happy coding Focks!!
Author: EphronM
Email: ephronmartin2016@gmail.com