This repository supports the YouTube series Learning to See. We'll take a bottom-up appraoch to machine learning for computer vision, and tackle one problem: counting the number of fingers in an image from a Leap Motion Infared Camera.
Order | Notebook/Slides | Topic | Required Viewing Before | Additional Reading | Notes |
---|---|---|---|---|---|
1 | Rules | Let's try a rules based approach to real CV problem | LTS part 1 | - | Intro to Programming Challenge |
2 | Machine Learning | Can we learn a better way from data? | LTS part 2, 3 | - | - |
3 | Generalization | How do we know if our models are actually working? | LTS part 4, 5 | Surely You're Joking Mr. Feynman | - |
4 | Learning From Data | But how do we really know that our models are working? | LTS part 6, 7 | - | Caltec Learning From Data Lecture 2 |
5 | Simple Rules | Why should we prefer simple rules? | LTS part 8, 9 | Caltec Learning From Data Lecture 2 | - |
6 | Decision Trees | How do we actually find good rules? | LTS part 10-15 | hackerdashery P vs NP | - |
The Python 3 Anaconda Distribution is the easiest way to get going with the notebooks and code presented here.
(Optional) You may want to create a virtual environment for this repository:
conda create -n cv python=3
source activate cv
You'll need to install the jupyter notebook to run the notebooks:
conda install jupyter
# You may also want to install nb_conda (Enables some nice things like change virtual environments within the notebook)
conda install nb_conda
This repository requires the installation of a few extra packages, you can install them all at once with:
pip install -r requirements.txt
(Optional) jupyterthemes can be nice when presenting notebooks, as it offers some cleaner visual themes than the stock notebook, and makes it easy to adjust the default font size for code, markdown, etc. You can install with pip:
pip install jupyterthemes
Recommend jupyter them for presenting these notebook (type into terminal before launching notebook):
jt -t grade3 -cellw=90% -fs=20 -tfs=20 -ofs=20 -dfs=20
Recommend jupyter them for viewing these notebook (type into terminal before launching notebook):
jt -t grade3 -cellw=90% -fs=14 -tfs=14 -ofs=14 -dfs=14
To properly view the images and animations, please launch your jupyter notebook from the root directory of this repository.
Windows users may need to install GraphViz separetely if you are getting GraphViz's executables not found exception in notebook 4.
- Download GraphViz MSI
- Add "C:\Program Files (x86)\Graphviz2.34\bin" to your PATH variable.
- Stop/Exit your current python environment/IDE and start again.