Mianto / glasses

Model built using pretraining restnet50 model in pytorch, from the data collected using google-images-download. Also contains visualization techniques for the prediction using saliency maps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glasses

Checks if the user is wearing any glasses or not

Working Image with glasses Working Image without glasses

Technologies used

  • PyTorch
  • Flask

Main Things Learnt

  • Creation of own Datasets
  • Use of Pretrained Models
  • Deploying Pytorch models over Flask server

Features to add

  • Add webcam support to take pictures on the page
  • Asynchronously add real time detection and witty comments Thanks to @memahesh
  • Make homepage more presentable

Installation / Testing

  • Clone the repository git clone https://github.com/Mianto/glasses.git and change the folder to Glasses.
  • Install the dependencies pip install requirements.txt
  • Change folder to glasses and run the flask app using python app.py

Files

  • glasses.ipynb used for training the model
  • saliency.ipynb gives the saliency map for the image

About

Model built using pretraining restnet50 model in pytorch, from the data collected using google-images-download. Also contains visualization techniques for the prediction using saliency maps.


Languages

Language:Jupyter Notebook 82.6%Language:JavaScript 15.8%Language:HTML 0.9%Language:Python 0.6%Language:CSS 0.1%