资源算法CIFAR-ZOO

CIFAR-ZOO

2019-10-12 | |  136 |   0 |   0

Awesome CIFAR Zoo

This repository contains the pytorch code for multiple CNN architectures and improve methods based on the following papers, hope the implementation and results will helpful for your research!!

Requirements and Usage

Requirements

  • Python (>=3.6)

  • PyTorch (>=1.1.0)

  • Tensorboard(>=1.4.0) (for visualization)

  • Other dependencies (pyyaml, easydict)

PS: for TensorboardX version, check tag pt1.0

pip install -r requirements.txt

Usage

simply run the cmd for the training:

## 1 GPU for lenetCUDA_VISIBLE_DEVICES=0 python -u train.py --work-path ./experiments/cifar10/lenet## resume from ckptCUDA_VISIBLE_DEVICES=0 python -u train.py --work-path ./experiments/cifar10/lenet --resume## 2 GPUs for resnet1202CUDA_VISIBLE_DEVICES=0,1 python -u train.py --work-path ./experiments/cifar10/preresnet1202## 4 GPUs for densenet190bcCUDA_VISIBLE_DEVICES=0,1,2,3 python -u train.py --work-path ./experiments/cifar10/densenet190bc

We use yaml file config.yaml to save the parameters, check any files in ./experimets for more details.
You can see the training curve via tensorboard, tensorboard --logdir path-to-event --port your-port.
The training log will be dumped via logging, check log.txt in your work path.

Results on CIFAR

Vanilla architectures

architectureparamsbatch sizeepochC10 test acc (%)C100 test acc (%)
Lecun62K12825067.4634.10
alexnet2.4M12825075.5638.67
vgg1920M12825093.0072.07
preresnet200.27M12825091.8867.03
preresnet1101.7M12825094.2472.96
preresnet120219.4M12825094.7475.28
densenet100bc0.76M6430095.0877.55
densenet190bc25.6M6430096.1182.59
resnext29_16x64d68.1M12830095.9483.18
se_resnext29_16x64d68.6M12830096.1583.65
cbam_resnext29_16x64d68.7M12830096.2783.62
ge_resnext29_16x64d70.0M12830096.2183.57

With additional regularization

PS: the default data augmentation methods are RandomCrop + RandomHorizontalFlip + Normalize,
and the  means which additional method be used. 

上一篇:pytorch-image-models

下一篇:d2l-pytorch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

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

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

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