- The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class.
- There are 50000 training images and 10000 test images.
The dataset is divided into five training batches and one test batch, each with 10000 images. The test batch contains exactly 1000 randomly-selected images from each class. The training batches contain the remaining images in random order, but some training batches may contain more images from one class than another. Between them, the training batches contain exactly 5000 images from each class.
Extract Dataset
tar xzf cifar-10.tar.gz
10 classes
class | encode |
---|---|
airplane | 0 |
automobile | 1 |
bird | 2 |
cat | 3 |
deer | 4 |
dog | 5 |
frog | 6 |
hourse | 7 |
ship | 8 |
truck | 9 |
In this directory execute
# Generate Tagfiles
python3 generate_tagfile.py
# Go to project directory
cd FCNN
# 1. Generate TFRecord
python3 cifar_generate_dataset.py
# 2. Training
python3 cifar_backward.py
# 3. Test (Stop with Ctrl + c)
python3 cifar_test.py
# Generate filelist.txt
find ../testpic -type f > filelist.txt
# Inject into App
cat filelist.txt | xargs python3 cifar_app.py
# Go to project directory
cd FCNN
# Other things same as FCNN ....