Giter VIP home page Giter VIP logo

Comments (2)

hanoonaR avatar hanoonaR commented on August 10, 2024

Hi @preddy5,

Thank you for your interest in our work.

Regarding your first question, it seems there's been a mix-up with the segmentation token index. In the model checkpoints we've provided, the correct seg_token_idx is actually 32004, not 29871. You can verify this by checking the value of args.seg_token_idx in train.py. Based on your generated_output_ids, 32004 does indeed appear three times, which aligns with the expected behavior for generating multiple masks. The issue might lie within the mask decoder's processing. Could you double-check how the masks are being decoded and ensure that it correctly interprets each occurrence of 32004? This should resolve the issue with mask generation.

For your second question, the discrepancy you've noticed is indeed expected due to the way the tokenizer handles special tokens within different contexts. When you tokenize "[SEG]" directly, the tokenizer recognizes it as a special token and assigns its specific ID, 32004 in this case. However, when "a [SEG]" is tokenized, the "[SEG]" is not recognized as a standalone special token due to the preceding text, leading to a different tokenization outcome. This behavior is by design, to allow the tokenizer to differentiate between special tokens and regular text.

I hope this clarifies your queries. Apologies for the delayed response, and I'll make sure to be more prompt in the future.

from groundinglmm.

preddy5 avatar preddy5 commented on August 10, 2024

Hey @hanoonaR
Thank you for the response.
I model works like a charm generating expected results after changing the seg_token_idx to 32004.
Thank you again for the clarification. I appreciate you helping with my query.

Regards,
Pradyumna.

from groundinglmm.

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.