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

The class “Fusion” #19

Open
BASPIRIT opened this issue Apr 16, 2024 · 1 comment
Open

The class “Fusion” #19

BASPIRIT opened this issue Apr 16, 2024 · 1 comment

Comments

@BASPIRIT
Copy link

The source code reads:
self.down = nn.Sequential(
nn.Conv2d(channels[level-1], channels[level], kernel_size=2, stride=2),
LayerNorm(channels[level], eps=1e-6, data_format="channels_first"),
) if level in [1, 2, 3] else nn.Identity()
So when level=0 and first_col=True, how do we implement downsampling?

@nightsnack
Copy link
Collaborator

level 0 does not need any downsample, if you do need one, just add one before level0

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