Giter Club home page Giter Club logo

Comments (3)

lucidrains avatar lucidrains commented on August 16, 2024 1

it is taking advantage of the fact that conv module acts on the first dimension, and linear module acts on the last https://github.com/lucidrains/mlp-mixer-pytorch/blob/main/mlp_mixer_pytorch/mlp_mixer_pytorch.py#L30 this trick saves from needing a transpose

from mlp-mixer-pytorch.

tinsir888 avatar tinsir888 commented on August 16, 2024 1

I really appreciate the author's explanation here, it makes it much easier for me to understand the code.

from mlp-mixer-pytorch.

tinsir888 avatar tinsir888 commented on August 16, 2024

Why are the parameters so different from the one in the paper?

Take the S-16 as an example:

* your model : 5.01 M

* Paper : 18 M

I compared your model with official imlementation model (Jax version), maybe you made a mistake.

I can not find any transpose operation in your model, which is necessary for Mixer layer.

If i do not understand your model, please correct me ,thanks a lot!

image

It appears that the code implementation completely lacks the operation of matrix transposition, and you are correct.

from mlp-mixer-pytorch.

Related Issues (11)

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.