GithubHelp home page GithubHelp logo

wtupc96 / channel-fusion Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 320 KB

The author's officially PyTorch Channel-Fusion implementation.

License: Creative Commons Zero v1.0 Universal

Python 100.00%
data-augmentation transformation image-processing computer-vision classification cifar10 cifar100 svhn color-space deep-learning

channel-fusion's Introduction

Channel Fusion: An Effective Data Augmentation to Boost Image Classification

The author's officially PyTorch Channel-Fusion implementation.

The code of models is modified from kuangliu/pytorch-cifar, have the following modifications:

  1. Support svhn dataset;
  2. num_classes can be passed as a parameter;
  • Thanks for the brilliant code of various models! ๐Ÿ˜„

Channel Fusion

Channel fusion is a surprisingly easy but effective data augmentation approach for models that only needs regrouping different image channels of the same class.

Requirements

  • Python 3.6
  • PyTorch 1.0

Run

  1. Dataset preparation, to see data/README.md;
  2. Train with python main.py --model [MODEL] --dataset [DATASET] (--channel_fusion) --lr [INIT_LR]
    • Available models:
      • VGG: VGG-11, VGG-13, VGG-16, VGG-19;
      • ResNet: ResNet-18, ResNet-34, ResNet-50, ResNet-101, ResNet-152;
      • ResNet-PreAct: ResNet-18-PreAct, ResNet-34-PreAct, ResNet-50-PreAct, ResNet-101-PreAct, ResNet-152-PreAct;
      • LeNet, GoogLeNet;
      • DenseNet: DenseNet-121, DenseNet-161, DenseNet-169, DenseNet-201;
      • ResNeXt: ResNeXt29_2x64d, ResNeXt29_4x64d, ResNeXt29_8x64d, ResNeXt29_32x4d;
      • MobileNet, MobileNet-V2;
      • DPN: DPN-26, DPN-92;
      • ShuffleNet: ShuffleNetG2, ShuffleNetG3, ShuffleNetV2;
      • SE-ResNet-18;
      • EfficientNet-B0.
    • Available datasets:
      • CIFAR-10;
      • CIFAR-100;
      • SVHN.
  3. You will see results on the console and get checkpoints as well as losses and accuracies in checkpoint folder. :)

Results

ResNet-18-PreAct:

Training Loss Training Error
Testing Loss Testing Error

channel-fusion's People

Contributors

wtupc96 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.