Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Question about running the speed_test.py #30

Closed
irsLu opened this issue Nov 9, 2022 · 3 comments
Closed

Question about running the speed_test.py #30

irsLu opened this issue Nov 9, 2022 · 3 comments

Comments

@irsLu
Copy link

irsLu commented Nov 9, 2022

Hi~
I want to run the speed_test.py, but there is an error as follow:
q, k, v = qkv.view(B, N, self.num_heads,
shape '[2048, 50176, 4, -1]' is invalid for input of size 308281344
when I check the code, I find that the code remove batchnorm of model, and the patch_embed of model is also removed. Therefore, the transformer blocks can not reshape the input.
image

image

My question is how I fix this problem?
And When I delete this line of removing batchnorm, I find the result of 'levit.LeViT_128S, 2048, 224' is 20761 images/s on RTX 3090 which is a lot higher than what you reported (12880 images/s reported in Tab 3). Is this result reasonable?
I am looking forward to your reply, thx~.

@irsLu irsLu changed the title There is an error when I run the speed_test.py Question about running the speed_test.py Nov 9, 2022
@btgraham
Copy link
Contributor

btgraham commented Nov 9, 2022

Hello. What is your torch.__version__ please?

@irsLu
Copy link
Author

irsLu commented Nov 9, 2022

Hello. What is your torch.__version__ please?

I'm so sorry~, I find it is my fault. I'm sorry to bother you. And good luck with your research

@irsLu irsLu closed this as completed Nov 9, 2022
@btgraham
Copy link
Contributor

btgraham commented Nov 9, 2022

No problem. Thanks for your interest.

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

No branches or pull requests

2 participants