- Clone or download this repository
- Get the data
- Setup your environment
For this workshop we will be using the German Traffic Sign Recognition Benchmark Dataset. Particularly a preprocessed version from Udacity which is also used in one of the projects in their Self-Driving Car Nanodegree Programm. In this version all the images are resized to 32x32 pixels and already split into a train and test set. The data can be downloaded here.
We will use python 3.5 with the following packages:
The easiest way to get started is by installing anaconda. Anaconda allows to create virtual environments to keep everything nice an clean. After installing anaconda your command line tool of choice and execute the following statements.
The next line will create a new environment with python 3.5 and install numpy, jupyter, matplotlib, scikit-learn and seaborn. Replace "env-name" with the name you want to call your environment.
conda create -n env-name python=3.5 numpy jupyter matplotlib scikit-learn seaborn
After the environment was created you have to activate it before you can install additional packages or actually use it. How you activate an environment depends on you OS. Remember to replace "env-name" with the name you chose.
Linux, OS X:
source activate env-name
Windows:
activate env-name
tqdm can now be installed with the following command.
pip install tqdm
Next step is to install tensorflow which can be installed with or without gpu support. Since the gpu version is more complicate to setup and requires additional libraries like Cuda we will go with the cpu version for now. Still if you have a powerful gpu you can follow the official setup guide to install the gpu version which will be a lot faster.
CPU Version
pip install tensorflow
GPU Version
pip install tensorflow-gpu
Finally install keras.
pip install keras