资源算法DenseNet_lite

DenseNet_lite

2020-03-30 | |  36 |   0 |   0

DenseNet_lite

This implements the DenseNet architecture introduced in Densely Connected Convolutional Network.The original Torch implementation can be found at https://github.com/liuzhuang13/DenseNet, and please find more details about DenseNet there. The only difference here is that we write a customed container "DenseLayer.lua" to implement the dense connections in a more memory efficient way. This leads to ~25% reduction in memory consumption during training, while keeps the accuracy and training time the same.

Usage

  1. Install Torch ResNet (https://github.com/facebook/fb.resnet.torch) following the instructions there. To reduce memory consumption, we recommend to install the optnet package.

  2. Add the files densenet_lite.lua and DenseLayer.lua to the folder models/;

  3. Insert require 'models/DenseLayer at Line.89 of models/init.lua, if you need to use multiple GPUs;

  4. Change the learning rate schedule at function learningRate() in train.lua (line 171/173), from decay = epoch >= 122 and 2 or epoch >= 81 and 1 or 0 to decay = epoch >= 225 and 2 or epoch >= 150 and 1 or 0

  5. Train a DenseNet (L=40, k=12) on CIFAR-10+ using

th main.lua -netType densenet_lite -depth 40 -dataset cifar10 -batchSize 64 -nEpochs 300 -optnet true


上一篇:TensorFlow-SR-DenseNet

下一篇:3D-DenseNet-for-HSI

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...