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

relative_position_bias_table initialization #11

Closed
gathierry opened this issue Oct 22, 2021 · 1 comment
Closed

relative_position_bias_table initialization #11

gathierry opened this issue Oct 22, 2021 · 1 comment

Comments

@gathierry
Copy link

Hi,
In the official code, relative_position_bias_table is initialized in a truncated normal distribution. Is that part missing in this repo?

Official code:
https://github.com/microsoft/Swin-Transformer/blob/6bbd83ca617db8480b2fb9b335c476ffaf5afb1a/models/swin_transformer.py#L110

This implem

initializer=tf.initializers.Zeros(), trainable=True)

@rishigami
Copy link
Owner

I forgot to implement that. thx!
btw when using pretrained weights, we can ignore the initialization things.

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