Coder Social home page Coder Social logo

muxconv's Introduction

MUXConv

Code accompanying the paper.

MUXConv: Information Multiplexing in Convolutional Neural Networks

Zhichao Lu, Kalyanmoy Deb, and Vishnu Boddeti

CVPR 2020

Requirements

Python >= 3.7.x, PyTorch >= 1.4.0, torchvision >= 0.5.0, timm == 0.1.14, 
torchprofile >= 0.0.1 (optional for calculating FLOPs)

ImageNet Classification

imagenet

Tranfer to CIFAR-10 and CIFAR-100

imagenet

Pretrained models

The easiest way to get started is to evaluate our pretrained MUXNet models. Pretrained models are available from Google Drive.

python eval.py --dataset [imagenet/cifar10/cifar100] \
	       --data /path/to/dataset --batch-size 128 \
	       --model [muxnet_s/muxnet_m/muxnet_l] \ 
	       --pretrained /path/to/pretrained/weights

Train

To re-train from scratch on ImageNet, use distributed_train.sh from pytorch-image-models and follow the recommended training hyperparameter setting for EfficientNet-B0.

To re-train on CIFAR (transfer) from ImageNet, run

python transfer_cifar.py --dataset [cifar10/cifar100] \
			 --data /path/to/dataset \
			 --model [muxnet_s/muxnet_m/muxnet_l] \
			 --imagenet /path/to/pretrained/imagenet/weights

Citation

If you find the code useful for your research, please consider citing our works

@article{muxconv,
  title={MUXConv: Information Multiplexing in Convolutional Neural Networks},
  author={Lu, Zhichao and Deb, Kalyanmoy and Boddeti, Vishnu},
  booktitle={CVPR},
  year={2020}
}

Acknowledgement

Codes heavily modified from pytorch-image-models and pytorch-cifar10.

muxconv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

muxconv's Issues

Models for ChestX-Ray14

Hi authors, thanks for sharing this wonderful work! I am currently working on ChestX-ray14 as well. Is it convenient for you to share the re-training code and model weights for this dataset? I couldn't appreciate too much!

Train on datasets other than imagenet and cifar

Hi there,

as I see in your guide, we can set the dataset to only Imagenet or Cifar, is it possible to train the model on other datasets such as Chexpert ?? if so, can you please provide a guide as to how we can do that?

Thanks in advance

about MUX conv parameter scales

hello,when I see this code,I have a problem. in the class of MuxInvertedResidual ,here is a parameter "scales", default 0,and if you want to use mux conv,this parameter must be a list. in MUXNet, this "scales" is always 0,that is to say, MUXNet is not used MUXcov?

pretrained models

Dear authors,
Thanks for sharing your wonderful work.
I am trying to experiment your work, but I found the pretrained model on the Google Doc contains only the m model.
It would be great if you can kindly share xs, s, and L models as well.

Best

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.