Skip to main content

MLP Mixer Pytorch

Pytorch implementation of MLP-Mixer.

Sample usage

foo@bar:❯ pip install mlp_mixer
from mlp_mixer import MLPMixer

model = MLPMixer(
        img_size=IMG_SZ,
        img_channels=IMG_CHANNELS,
        num_classes=NUM_CLASSES,
        mixer_depth=DEPTH,
        num_patches=NUM_PATCHES,
        num_channels=NUM_CHANNELS,
        expansion=EXPANSION,
        dropout=DROPOUT,
    )

Citations

    @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}
    }

Metadata

Release files for mlp-mixer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlp-mixer 0.0.1
File Size Uploaded
mlp-mixer-0.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlp-mixer 0.0.1
File Interpreter ABI Platform
mlp_mixer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / mlp-mixer-0.0.1.tar.gz

Download URL mlp-mixer-0.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7b848f2ad53e8201251ed1cec2ef85c6c3d1e6466ce6715227beff53e8037e31
BLAKE2b-256 checksum
How to use checksums
28469e1980a4e0b1fe8e65e4360f867a3aedb3905192340b832d98e02ccf8035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

Release files / mlp_mixer-0.0.1-py3-none-any.whl

Download URL mlp_mixer-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18c7e5e5aed08557cf29563050a727944506b8b26b7ddc2ad430a1463bed499d
BLAKE2b-256 checksum
How to use checksums
4074fad92cf0c3c7661372d7c0ad1bfb5371c0e3b3aa32ec912c9ac94c1d35bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page