Giter Club home page Giter Club logo

csci1430_final_project's Introduction

Brown University CSCI1430 Computer Vision Final Project: Real-time Face Mask Detection System

Contributors: Bangxi Xiao, Qiubai Yu, Xinyu Song, Tianqi Liu

Contact: [email protected] / [email protected] / [email protected] / [email protected]

FIRST THING FIRST: Install the required packages from requirements.txt

Usage (model preparation):

  1. Cloning the git repository to local.
  2. To download from GCP bucket, gsutil is needed. To install the gsutil tool, please check: https://cloud.google.com/storage/docs/gsutil_install (we highly recommend the pip method)
  3. Afer installing the required tools, run "gsutil ls gs://csci1430-final" in command line to check the file structures in the bucket. To fetch the trained models, run "gsutil -m cp gs://csci1430-final/train_output/model {PATH_TO_THIS_REPO}/train_log".
  4. (Alternative) You can also download model from our Google Drive: https://drive.google.com/drive/folders/1---YVlPH8-LfapZ6TiLRCcGOrpuJquam?usp=sharing

Usage (training, validation, and testing tfrecords data generation):

  1. The original dataset for training and validation can be found via: https://www.kaggle.com/datasets/tapakah68/medical-masks-part1
  2. The original testing data can be found via: https://www.kaggle.com/datasets/tapakah68/medical-masks-part7
  3. After downloading and unzipping the files, place the images from 1 into data/train_images and images from 2 into data/test_images (according to ProcessARGS.py).
  4. Run script convert_data.py and the tfrecords files will be automatically written into data/train_validation_data and data/test_data.
  5. (Alternative) If you don't want to start from raw images, feel free to download the prepared tfrecords from our public GCP bucket: gs://csci1430-final/data

Usage (model training):

  1. After data preparation, you can train the models by running script "train_model.py".
  2. To train the model, you can use command line "python train_model.py --help" to learn more about the available options.
  3. (Alternative) You can also fetch the models directly from our GCP bucket: gs://csci1430-final/train_output/model
  4. For the training logs, they will be written into train_output/log, separated by different models. (You can also obtain the training logs from the bucket: gs://csci1430-final/train_output/log)

Usage (detection system):

  1. Make sure that your PC has a camera.
  2. Running script "run_detection.py". You might also want to learn more about the options we provide via "python run_detection.py --help".

csci1430_final_project's People

Contributors

rchopinw avatar

Watchers

 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.