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

C3STR issue? #182

Open
sun0717 opened this issue Oct 30, 2023 · 0 comments
Open

C3STR issue? #182

sun0717 opened this issue Oct 30, 2023 · 0 comments

Comments

@sun0717
Copy link

sun0717 commented Oct 30, 2023

class C3STR(C3):
# C3 module with SwinTransformerBlock()
def init(self, c1, c2, n=1, shortcut=True, g=1, e=0.5):
super().init(c1, c2, c2, n, shortcut, g, e)
c_ = int(c2 * e)
num_heads = c_ // 32
self.m = SwinTransformerBlock(c_, c_, num_heads, n)

super().init(c1, c2, c2, n, shortcut, g, e) <-- maybe there has two c2? and correct solution is super().init(c1, c2, n, shortcut, g, e) that model can trainning.

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

1 participant