Skip to content

Latest commit

 

History

History

CIFAR-10

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

CIFAR-10

Dataset

The CIFAR-10 dataset

  • 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

Generate Tags

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

FCNN Version

Instruction

# 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

Custom Picture Test

# Generate filelist.txt
find ../testpic -type f > filelist.txt
# Inject into App
cat filelist.txt | xargs python3 cifar_app.py

CNN Version

# Go to project directory
cd FCNN
# Other things same as FCNN ....

Link

Kaggle - CIFAR-10 - Object Recognition in Images