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

请教调用ALTGVT问题 #23

Closed
wfs123456 opened this issue Nov 13, 2021 · 4 comments
Closed

请教调用ALTGVT问题 #23

wfs123456 opened this issue Nov 13, 2021 · 4 comments

Comments

@wfs123456
Copy link

您好,请教一下 调用分类任务中的ALTGVT时,提示 类GroupBlock重载父类TimmBlock时多写了一个参数,报错如下:
super(GroupBlock, self).init(dim, num_heads, mlp_ratio, qkv_bias, qk_scale, drop, attn_drop,
TypeError: init() takes from 3 to 10 positional arguments but 11 were given

查询TimmBlock后发现 其并没有qk_scale这个参数,请问这个bug如何解决呢

@cxxgtxy
Copy link
Collaborator

cxxgtxy commented Nov 13, 2021

我猜是由于你安装的timm不是0.3.2

@wfs123456
Copy link
Author

我猜是由于你安装的timm不是0.3.2

原来timm库不向下兼容,感谢美团大佬指导

1 similar comment
@wfs123456
Copy link
Author

我猜是由于你安装的timm不是0.3.2

原来timm库不向下兼容,感谢美团大佬指导

@cxxgtxy
Copy link
Collaborator

cxxgtxy commented Nov 15, 2021

我猜是由于你安装的timm不是0.3.2

原来timm库不向下兼容,感谢美团大佬指导

问题解决后,可以close这个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

No branches or pull requests

2 participants