Skip to content

Unofficial implementation of MLP-Mixer: An all-MLP Architecture for Vision

License

Notifications You must be signed in to change notification settings

xmu-xiaoma666/MLP-Mixer-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLP-Mixer-pytorch

Unofficial pytorch implementation of MLP-Mixer: An all-MLP Architecture for Vision

official implementation

Overview

error

Usage

from mlp_mixer import MlpMixer
mlp_mixer=MlpMixer(num_classes=1000,num_blocks=10,patch_size=10,tokens_hidden_dim=32,channels_hidden_dim=1024,tokens_mlp_dim=16,channels_mlp_dim=1024)
input=torch.randn(50,3,40,40)
output=mlp_mixer(input)
print(output.shape)

Citation

@misc{tolstikhin2021mlpmixer,
      title={MLP-Mixer: An all-MLP Architecture for Vision}, 
      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},
      year={2021},
      eprint={2105.01601},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

About

Unofficial implementation of MLP-Mixer: An all-MLP Architecture for Vision

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages