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

can explain why do this (h + 1) // 2, (w + 1) // 2 #35

Open
cometta opened this issue Nov 25, 2023 · 1 comment
Open

can explain why do this (h + 1) // 2, (w + 1) // 2 #35

cometta opened this issue Nov 25, 2023 · 1 comment

Comments

@cometta
Copy link

cometta commented Nov 25, 2023

return (self.outchan, (h + 1) // 2, (w + 1) // 2)

Can explain why this line we do this +1 for height and weight before divide?

init_scale=math.sqrt(len(chans)),

any paper i can read on why set init scaling using the number of channel ?

@Miffyli
Copy link
Collaborator

Miffyli commented Nov 25, 2023

Hey. Unfortunately I (and other authors of VPT probably) do not have good answers to give off the bat, as these codes have probably lived in OpenAI's codebase for quite a while the original reasoning for them lost in time. Usually these might be things that "implemented found to work well" or saw it somewhere else.

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