Giter Club home page Giter Club logo

Comments (6)

dandelin avatar dandelin commented on June 2, 2024

Hi @hspark92,

mask_it=False is a legacy argument for the MPP (masked patch projection) objective.
I refer you to #18

from vilt.

hspark1212 avatar hspark1212 commented on June 2, 2024

Hi @dandelin ,

Thanks you for your reply.
It's helpful !

But i wonder why self.mask_token is trainable parameters.
if self.mask_toekn is cnostant, will it affect training ?

Thanks,

from vilt.

dandelin avatar dandelin commented on June 2, 2024

@hspark92

I set it as a trainable parameter following BERT's way of treating [MASK] tokens.
I'm not sure whether constant [MASK] tokens' embeddings affect the training or not.

But if an experiment on those fixed [MASK] tokens' embeddings exists in the NLP domain, then I believe ViLT's MPP would follow the trend.

Thanks.

from vilt.

hspark1212 avatar hspark1212 commented on June 2, 2024

I get it, thank you for answer !

from vilt.

yr666666 avatar yr666666 commented on June 2, 2024

Hi, I find the same problem as yours. The 'self.mask_token' has not been defined. So I can't run the pre-train code. How do you solve it? Thanks!

from vilt.

yr666666 avatar yr666666 commented on June 2, 2024

Hi, i'm really impressed with your work and i'm getting a lot of help !

But, there is an error in vilt/modules/vision_transformer.py when mask_it == True. The error occur because self.mask_token at 553 line in vision_transformer.py is not initilized. So, i wonder what self.mask_token means?

Thanks.

Hi, I find the same problem as yours. The 'self.mask_token' has not been defined. So I can't run the pre-train code. How do you solve it? Thanks!

from vilt.

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.