Skip to content

The task of this application is to estimating the attraction of the Image processing.

Notifications You must be signed in to change notification settings

Avdhesh-Varshney/Face-Attraction-Detection-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💥 Face Attraction Detection Model 💥

TECH STACK USED

HTML5 CSS3 Flask Jupyter Notebook Pandas NumPy Matplotlib scikit-learn SciPy Keras TensorFlow OpenCV

GOAL

  • The aim of the project is doing image processing and predict how much attract is the face in the image.

DATASET

  • Description of the Dataset and Kaggle Link

Line

LIBRARIES NEEDED

  1. Pandas
  2. Numpy
  3. Matplotlib
  4. Sklearn
  5. Sci-py
  6. Seaborn
  7. Flask
  8. Tensorflow
  9. Keras

HOW TO USE IT

  • Create a virtual environment using python -m venv myenv.
  • To activate the virtual environment use .\myenv\Scripts\activate.
  • If error occurs, use Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass.
  • Now, app.py is the flask app code. run the command pip install -r requirements.txt to install the required dependencies for the flask app.
  • You may need to install additional libraries for running the jupyter notebooks.
  • Upload the model file on Google Colab and put the Kaggle API key json file on Google Drive homepage then run the code.
  • Finally, download the updated weights file of highest accuracy model like weights.best.inc.attractive.hdf5 is of Inception V3 Model weights file goes around 185 MB.
  • Link it with the app.py file and start the python file.

WHAT I HAVE DONE

  • First I imported all the required libraries and dataset for this project.
  • Perfoming the EDA on the whole dataset.
  • Chosing 1 target feature i.e., Attractiveness.
  • Converting all -1 values into 0 values as negative instances.
  • Visualizing the dataset distribution in univariate and bivariate with target feature.
  • Splitting the dataset into training, validation and testing set as given in list_eval_partition.csv file.
  • Due to high amount of dataset and uniform distribution of dataset for training, i will chose small amount from it for training, validation and testing purpose.
  • Pre-processing the images i.e., Data augmentation so that model will able to predict easily on any dimension of image like inverted, or at any angle of rotation, etc and model is able to learn from these type of variation in the images.
  • Finally, start building the different models like inceptionV3 model, resnet50 model, and resnet101V2 models by freezing the some of the layers of them.
  • At the end, Adding some fully connected layers by own for classification problem of the model.
  • Train the model and plot the accuracy and loss of the model on test dataset.

MODELS USED

Models Used Accuracy
Inception V3 68.80%
ResNet-50 50.20%
ResNet-101 V2 62.13%

Visualization and EDA of different attributes

graph graph
graph graph
graph graph
graph graph
graph

⚡ InceptionV3

graph graph

⚡ ResNet50

graph graph

⚡ ResNet101V2

graph graph

CONCLUSION

  • InceptionV3 Model showing promising performance with 68.80% accuracy of the model.
  • Created a user-friendly front-end framework using FLASK and integrate it to the model.

OUTPUTS

Pass Pass Pass
Fail Fail Fail

Line

PROJECT CREATOR & ADMIN


LinkedIn

Line

Show some  ❤️  by  🌟  this repository!

I love connecting with different people so if you want to say hi, I'll be happy to meet you more! :)

About

The task of this application is to estimating the attraction of the Image processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages