Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 1.8 KB

README.md

File metadata and controls

74 lines (61 loc) · 1.8 KB

Lightning McQueen

Lighting McQueen is our phases of models created for arm gesture recognition. Bellow you will find the setup process for beeing able to run the code used for machine learning part of this project.

Requirements

Configure and activate virtual environment

PyCharm

If a virtual environment was not created when setting up a new project in PyCharm follow JetBrains guide on setting up a virtual environment (https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html)

Terminal

Check to see if your install of Python has pip

pip -h

Install virtualenv package

pip install virtualenv

Create virtual environment

Make sure to be in the project directory.

virtualenv venv

Activate virtual environment

Mac OS and Linux

source venv/bin/activate

Windows

venv\Scripts\activate

If you want to deactivate the virtual environment simply run deactivate in the terminal window.

Installation of needed packages

Use the package manager pip for installing needed packages.

pip install plaidml-keras plaidbench
pip install -U matplotlib
pip install opencv-python
pip install tqdm
pip install termcolor
pip install sty
pip install pickle

Setup PlaidML

+ If you have a dedicated GPU its recomended to select it as your accelerator.

Choose which accelerator you'd like to use (many computers, especially laptops, have multiple) In the terminal of your python project (venv) write:

plaidml-setup
  • Enable experimental mode
  • Select your accelerator

Now try benchmarking MobileNet:

plaidbench keras mobilenet
  • You are now good to go!