https://github.com/mingtaoguo/densenet-tensorflow
DenseNet for cifar10
https://github.com/mingtaoguo/densenet-tensorflow
cifar10 densenet tensorflow
Last synced: 8 months ago
JSON representation
DenseNet for cifar10
- Host: GitHub
- URL: https://github.com/mingtaoguo/densenet-tensorflow
- Owner: MingtaoGuo
- License: mit
- Created: 2018-10-30T12:42:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T08:12:38.000Z (over 7 years ago)
- Last Synced: 2025-07-10T16:46:24.533Z (12 months ago)
- Topics: cifar10, densenet, tensorflow
- Language: Python
- Size: 186 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DenseNet-TensorFlow
DenseNet for cifar10
## Introduction
DenseNet is simplely implemented by TensorFlow, the flow chart of DneseNet is shown in follow figure.

The greatest advantage of DneseNet is high accuracy and low occupancy rate of memory. This code we use the DenseNet of 40 depth for cifar10 classification, when we save the model in .ckpt, the ckpt file just cost about 2~3M, it's very slight.
## How to use the code
1. Download the cifar10 data, [cifar10 address](http://www.cs.toronto.edu/~kriz/cifar-10-matlab.tar.gz)
2. Unzip the cifar10 data, and put them into the folder 'cifar10'
```
├── cifar10
├── data_batch_1.mat
├── data_batch_2.mat
├── data_batch_3.mat
├── data_batch_4.mat
├── data_batch_5.mat
├── test_batch.mat
...
```
3. Execute main.py
## Python packages
========================
1. python3.5
2. tensorflow 1.4.0
3. numpy
4. scipy
========================
## Results
|Loss|Training error|Validation error|
|-|-|-|
||||
This experiment we don't use data augmentation, and just train 100 epoches, It doesn't seem to have converged yet. In original paper, 40 depth DenseNet test error is 7%, which is 3 percentage points lower than this code. Due to the poor device, i don't try to train the DenseNet for 300 epoches like the paper. I will very appreciate if somebody can run the code for 300 epoches.