A tensorflow implementation of dense net on Street view house number(SVHN) dataset.
A brief description of the Model is provided below.
The files I have modified significantly are:
- preprocess.py
- train.py
- models.py
Input layer -> Block 1 -> Transition 1 -> Block 2 -> Transition 2 -> Block 3 -> Batch Normalization -> Relu -> Global average pooling -> Fully connected layer
-
Block consists of 4 Dense layers.
-
Dense layer is made of the following sequence:
- Batch Normalization
- Relu
- Convolutional 2d layer
- Concatination of the previous layers output to the previous element(Convolutional 2d layer)
-
Transition Layer is made of the following sequence:
- Batch Normalization
- Relu
- Convolutional 2d layer
- Average Pooling(stride=2)
- Input dimension = [100, 32, 32, 1] (Trained using batches of 100 images)
- Ouput dimension = [10]
- epoch = 800
- Balanced subsampling on training dataset.
- Converting SVHN images from RGB to grayscale.
- The training and validation data are stored in HDF5 binary data format.