Coder Social home page Coder Social logo

bellypoly / facemask-workshop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geoboom/facemask-workshop

0.0 1.0 0.0 94.93 MB

This is the official repository for NUS Statistics Society's Facemask Detection Workshop, held on 17th September 2020.

Python 24.53% Shell 0.10% JavaScript 26.02% SCSS 5.64% Jupyter Notebook 43.72%

facemask-workshop's Introduction

Welcome to NUS Statistics Society Facemask Detector Workshop!

The purpose of this repository is to help you get started with the basic tools ๐Ÿ”จ and code ๐Ÿ’ป needed to follow along in the workshop. It will also serve as the single source of truth, hosting the latest version of our facemask ๐Ÿ˜ท detector workshop material ๐Ÿ“š.

We hope that you will find great joy and meaning in our workshop! ๐Ÿ˜‚ Consider giving this repository a star โญ if you found it helpful!

Table of contents:

Pre-workshop installation guide

This guide covers the installation of:

  • Anaconda - a distribution of python which comes with a lot of data science packages ๐Ÿ“ฆ.
  • jupyter notebook - a live python execution environment typically used for exploratory ๐Ÿ” data analysis.
  • nodejs and npm - nodejs is a js (javascript) runtime built on chrome's V8 engine ๐Ÿš— and npm is a package manager for nodejs.

You may find the detailed installation instructions for your operating system (Linux/Mac/Windows) via the links below. We know the instructions might look pretty lengthy but it won't take more than 20 minutes! ๐Ÿ™๐Ÿ™๐Ÿ™

If you use a Windows machine, click here.

If you use a Mac, click here.

If you use Linux, click here.

Please only follow ONE of the installation guides e.g. if you're using Mac please don't follow the Linux guide by accident. We can't help you with troubleshooting issues otherwise.

I have problem ๐Ÿ˜ญ๐Ÿ˜ญ. What do?

Please post a Github issue on this repo if you encounter any difficulties!

Project setup

Follow the instructions below to get familiarized with the project repository. You may make reference to this section during the workshop itself to perform certain tasks ๐Ÿ“–.

Note that the backend code is incomplete - you'll be filling in the blanks during the workshop!

Cloning this repo

  1. Open up terminal (wsl terminal for Windows) and type sudo apt update && sudo apt upgrade. This ensures you have the latest system packages.
  2. Run git clone --depth 1 https://github.com/geoboom/facemask-workshop.git to clone this repo. If you get a git command not found error, run sudo apt install git first then try cloning the repo again.
  3. Run ls and you should see a folder called facemask-workshop.

Launching jupyter notebook

  1. In terminal, type cd facemask-workshop to navigate to the project's root folder.
  2. In the root folder, navigate to the notebook subdirectory by typing cd notebook.
  3. Type conda activate base to activate Anaconda's base environment. You should see (base) beside your name in terminal.
  4. Now run jupyter notebook and this notebook folder should open in Jupyter Notebook on your browser.

Running the frontend (website)

  1. Open up a new terminal and type cd facemask-workshop to navigate to the project's root folder.
  2. In the root folder, navigate to the frontend subdirectory by typing cd frontend.
  3. Type npm install to install the frontend project dependencies. This might take a while so grab a coffee โ˜•.
  4. Once the dependencies have finished installing, type npm run dev to run the website's server (nextjs).
  5. Visit localhost:3000 in your browser to see the website live!

Running the backend (FastAPI server)

  1. Open up a new terminal and type cd facemask-workshop to navigate to the project's root folder.
  2. In the root folder, navigate to the backend subdirectory by typing cd backend.
  3. Type python3 -m venv venv to create a python3 virtual environment in the backend directory.
  4. Type source venv/bin/activate to activate this virtual environment. You should see (venv) beside your name, indicating that the venv environment is activated.
  5. Run pip install -r requirements.txt to install the dependencies to this virtual environment. This might take a while so grab a coffee โ˜•.
  6. Once dependencies have finished installing, type ./run.sh to run the FastAPI server and hit enter.

Credits

This section is under construction.

Name Role Github
Jet NUS Statistics Society Workshop Director https://github.com/jetnew
Rama Presenter, guide writing, and material prep https://github.com/ramav111
Georgie Presenter, guide writing, and material prep https://github.com/geoboom

Dataset for masked/no-masked.

facemask-workshop's People

Contributors

geoboom avatar

Watchers

James Cloos 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.