GithubHelp home page GithubHelp logo

amitdk / w251_project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madhuatberkeley/w251_project

0.0 0.0 0.0 83.24 MB

Final Project for W251 MIDS Program

Python 70.29% Jupyter Notebook 24.61% Shell 5.10%

w251_project's Introduction

W251_Project

Final Project for W251 MIDS Program

1. Download vggFace2 Dataset

Download dataset with 500 faces from (https://www.kaggle.com/greatgamedota/vggface2-test). The dataset is stored in W251_Project/data/test_no_mask folder

2. Dataset Augmentation with masks

Install packages in conda environment given in W251_project/conda_env.sh

python mask_the_face.py --inpath data/test_no_mask --outpath data/test_with_mask --mask_type <type-of-mask> --verbose --write_original_image

3. Facenet training without masks

Run jupyter notebook

jupyter notebook --allow-root

Run finetune_no_augmentation.ipynb

The trained model is saved as /data/model_no_mask.pt

4. Facenet training with masks

Run finetune_with_augmentation.ipynb

The trained model is saved as /data/model_with_mask.pt

The training with and without the augmentation are done to demonstrate improvements with the augmentation.

5. Masked face Inference on Jetson

The model trained in steps 3) and 4) are downloaded to W251_Project/data in Jetson. The Jetson files are in jetson-inference subfolder.

Run PyTorch docker container for inference

docker/run.sh

Run jetson-inference/infer.ipynb inisde the container

jupyter notebook --allow-root

w251_project's People

Contributors

madhuatberkeley avatar madhuhegde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.