Use CNN and VGG structure to train 3 datasets:
- CIFAR10
- CIFAR100
- Caltech101
Save the trained model, then use webcam and django to write a simple web application. link
- Install tensorflow and keras
- Download caltech dataset
- Run train/Train_CIFAR10_CIFAR100.ipynb or train/Train_caltech.py
Dataset | Training acc | Testing acc | Runnung time (with GTX 960 8G) |
---|---|---|---|
CIFAR10 | 98% | 80% | 16 min |
CIFAR100 | 89% | 71% | 7 hr |
Caltech101 | 90% | 65% | 1 hr |
The first block is the webcam preview window, and the little block near it is the image that we want to predict. After running backend prediction, it would show the predicted result.
CIFAR10 | |
CIFAR100 | |
Caltech101 | |