Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inquiry about the determination of VOCAB_SIZE and OBJ_CLASSES_SIZE in the config file #6

Open
haruka0000 opened this issue Sep 22, 2023 · 0 comments

Comments

@haruka0000
Copy link

Hello,

I hope this message finds you well. I have been reviewing the configuration file for the project, and I noticed that the values for VOCAB_SIZE and OBJ_CLASSES_SIZE are set to 206 and 155, respectively. I would like to inquire about how these specific values were determined.

MODEL:
    PRETRAIN: False
    ENCODER:
        NAME: 'Rel2Box'
        REL_GT: False
        VOCAB_SIZE: 206
        OBJ_CLASSES_SIZE: 155

I have also looked into the content of the COCO.vocab, which provides mappings between object and predicate names and their corresponding indices. Based on my understanding, for the model to predict classes accurately, OBJ_CLASSES_SIZE should be equal to either object_name_to_idx or object_idx_to_name, but it seems that 155 does not match any of these values.

key length
object_name_to_idx 177
pred_name_to_idx 7
object_pred_name_to_idx 184
object_pred_idx_to_name 184
pred_idx_to_name 7
object_idx_to_name 188

Could you kindly provide some insights into the rationale behind choosing the values 206 and 155 for VOCAB_SIZE and OBJ_CLASSES_SIZE? I am curious to understand the reasoning behind these numbers.

Thank you for your attention to this matter. I look forward to your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant