项目作者: himanshu-dutta

项目描述 :
Pytorch implementation of MLP Mixer
高级语言: Jupyter Notebook
项目地址: git://github.com/himanshu-dutta/MLPMixer-pytorch.git
创建时间: 2021-05-28T11:23:19Z
项目社区:https://github.com/himanshu-dutta/MLPMixer-pytorch

开源协议:MIT License

下载


MLP Mixer Pytorch

Pytorch implementation of MLP-Mixer.

Sample usage

  1. foo@bar:❯ pip install mlp_mixer
  1. from mlp_mixer import MLPMixer
  2. model = MLPMixer(
  3. img_size=IMG_SZ,
  4. img_channels=IMG_CHANNELS,
  5. num_classes=NUM_CLASSES,
  6. mixer_depth=DEPTH,
  7. num_patches=NUM_PATCHES,
  8. num_channels=NUM_CHANNELS,
  9. expansion=EXPANSION,
  10. dropout=DROPOUT,
  11. )

Citations

  1. @misc{tolstikhin2021mlpmixer,
  2. title = {MLP-Mixer: An all-MLP Architecture for Vision},
  3. author = {Ilya Tolstikhin and Neil Houlsby and Alexander Kolesnikov and Lucas Beyer and Xiaohua Zhai and Thomas Unterthiner and Jessica Yung and Daniel Keysers and Jakob Uszkoreit and Mario Lucic and Alexey Dosovitskiy},
  4. year = {2021},
  5. eprint = {2105.01601},
  6. archivePrefix = {arXiv},
  7. primaryClass = {cs.CV}
  8. }