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

Question about the mask token id and sos token id #9

Closed
larryzhang23 opened this issue Apr 23, 2022 · 2 comments
Closed

Question about the mask token id and sos token id #9

larryzhang23 opened this issue Apr 23, 2022 · 2 comments

Comments

@larryzhang23
Copy link

Hi,
In transformer.py, I find mask_token_id is set to be args.num_image_tokens. Shouldn't it be the args.num_codebook_vectors? I think we don't want the mask token id to be one of those in the codebook. Similar thing for the sos token id.

@dome272
Copy link
Owner

dome272 commented Apr 23, 2022

Oh yea thats correct. My bad. Thanks for correcting. Although it doesnt seem to harm performance that bad, Im currently training another model at 32x32 resolution. Thats the loss curve:
image

@dome272
Copy link
Owner

dome272 commented Apr 25, 2022

I restarted training and it seems to perform better now.
image
(Green is the fixed tokens)
But I also changed something at the optimiter weight decay, so maybe this also has some effect on it.

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

2 participants