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.
-
Python 3.6 or 3.7
-
We recommend using PyCharm IDE (https://www.jetbrains.com/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)
pip -hpip install virtualenvMake sure to be in the project directory.
virtualenv venvMac OS and Linux
source venv/bin/activateWindows
venv\Scripts\activateIf you want to deactivate the virtual environment simply run deactivate in the terminal window.
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+ 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!