GithubHelp home page GithubHelp logo

Comments (4)

stevenwalton avatar stevenwalton commented on June 28, 2024

Hey Haelles,

If you look at src/cct:231 you'll see that we hard code CCT (and CVT) to have a dropout of 0. Though ViTLite line 161 has a dropout of 0.1.

The lines that you are looking at (src/transformers.py:62) are called by all the models. They all use the same Transformer Encoder structure. But CCT and CVT will not apply dropout and you can safely ignore that for those models, unless you want to do some hyper parameter testing yourself.

I can see the ambiguity in how we wrote it. We'll make sure this is more clear in the next version of the paper. Thank you!

from compact-transformers.

Haelles avatar Haelles commented on June 28, 2024

Hey Haelles,

If you look at src/cct:231 you'll see that we hard code CCT (and CVT) to have a dropout of 0. Though ViTLite line 161 has a dropout of 0.1.

The lines that you are looking at (src/transformers.py:62) are called by all the models. They all use the same Transformer Encoder structure. But CCT and CVT will not apply dropout and you can safely ignore that for those models, unless you want to do some hyper parameter testing yourself.

I can see the ambiguity in how we wrote it. We'll make sure this is more clear in the next version of the paper. Thank you!

Thank you for your reply.
If I may ask again, I added print(self.dropout1) at src/transformers.py:62 and got Dropout(p=0.1, inplace=False). I think there is something wrong here src/cct.py:109, the value of parameter "dropout" should be "dropout" rather than "dropout_rate". The value of "dropout_rate" is 0.1 here.
I used python main.py --model cct_7 --conv-size 3 --conv-layers 1 path/to/cifar10
Really appreciate your help!

from compact-transformers.

alihassanijr avatar alihassanijr commented on June 28, 2024

Hello @Haelles

Thank you for bringing this to our attention. We noticed there was a small key mismatch in this version, and we just fixed it in the latest commit (39b45de).

from compact-transformers.

Haelles avatar Haelles commented on June 28, 2024

Thanks for your response!

from compact-transformers.

Related Issues (20)

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.