xmu-xiaoma666 / MLP-Mixer-pytorch

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Python 100.0%