Classify images using CNN module from tensorflow.
- install python & tensorflow
- beware of GPU driver's version & tensorflow's version.
- do make sure softwares are compatible. See https://www.tensorflow.org/install/source#gpu
- and everything else
- Pillow
- matplotlib
- numpy
$ python3 /path/to/classes.py
with tkinter, the GUI should look something like this:
- Each folder should contain multiple images.
- Each folder represents 1 class.
- Each folder's name will be used as class name.
Simply select "Train" and click "Run".
Wait till the training is over.
Select target directory containing images.
Click "Test" and then "Run".
Predictions are shown in the message box(top left).
- Images are not scaled dynamically. Sampling height/width should equal to that of training.
- Images are not cleaned, anything from the background are used in training.
- "Training Checkpoints" not yet implemented, beware of machine shutting down during training.