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

在VisionTransformer #110

Closed
zym1599 opened this issue Nov 21, 2022 · 5 comments
Closed

在VisionTransformer #110

zym1599 opened this issue Nov 21, 2022 · 5 comments
Labels

Comments

@zym1599
Copy link

zym1599 commented Nov 21, 2022

您好,非常感谢开源。请教您,在Vision-Transformer尝试中加载数据后报错,要求输入两个参数,却输入了三个。随后补充报错,感谢!希望百忙中给予一些解答,谢谢您!
TypeError: forward() takes 2 positional arguments but 3 were given
image

捕获2222

@zym1599 zym1599 closed this as completed Nov 21, 2022
@zym1599 zym1599 reopened this Nov 21, 2022
@airaria
Copy link
Owner

airaria commented Nov 21, 2022

可否提供一下adaptor的定义,和你的Vision-Transformer代码?

您好,非常感谢开源。请教您,在Vision-Transformer尝试中加载数据后报错,要求输入两个参数,却输入了三个。随后补充报错,感谢!希望百忙中给予一些解答,谢谢您! TypeError: forward() takes 2 positional arguments but 3 were given image

捕获2222

@zym1599
Copy link
Author

zym1599 commented Nov 21, 2022

您好,非常感谢开源。请教您,在Vision-Transformer尝试中加载数据后报错,要求输入两个参数,却输入了三个。随后补充报错,感谢!希望百忙中给予一些解答,谢谢您!TypeError: forward() 需要 2 个位置参数,但给出了 3 个 图像

捕获2222

dilstill.txt
vit_model.txt

可否提供一下adaptor的定义,和你的Vision-Transformer代码?

您好,非常感谢开源。请教您,在Vision-Transformer尝试中加载数据后报错,要求输入两个参数,却输入了三个。随后补充报错,感谢!希望百忙中给予一些解答,谢谢您! 类型错误: forward() 需要 2 个位置参数,但给出了 3 个图像
捕获2222

万分感谢您的指教,已附代码。
vit_model.txt
dilstill.txt

@airaria
Copy link
Owner

airaria commented Nov 21, 2022

能否说明下每个 batch中有多少个元素,元素类型分别是什么?

@stale
Copy link

stale bot commented Nov 26, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 26, 2022
@free2ride19
Copy link

Issue on review, soon to be resolved.

@stale
Copy link

stale bot commented Dec 16, 2022

Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.

@stale stale bot closed this as completed Dec 16, 2022
@free2ride19
Copy link

free2ride19 commented Dec 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants