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

When mlp_ratio!=1, it errors #5

Open
Zhaoyi-Yan opened this issue Jun 18, 2024 · 0 comments · May be fixed by #6
Open

When mlp_ratio!=1, it errors #5

Zhaoyi-Yan opened this issue Jun 18, 2024 · 0 comments · May be fixed by #6

Comments

@Zhaoyi-Yan
Copy link

C keeps changing after processed by fcs. So you cannot use the same C here.

U-KAN/Seg_UKAN/archs.py

Lines 220 to 228 in 432a663

x = self.fc1(x.reshape(B*N,C))
x = x.reshape(B,N,C).contiguous()
x = self.dwconv_1(x, H, W)
x = self.fc2(x.reshape(B*N,C))
x = x.reshape(B,N,C).contiguous()
x = self.dwconv_2(x, H, W)
x = self.fc3(x.reshape(B*N,C))
x = x.reshape(B,N,C).contiguous()
x = self.dwconv_3(x, H, W)

@Zhaoyi-Yan Zhaoyi-Yan linked a pull request Jun 19, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant