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

Question regarding flops calculation #2

Open
maryanpetruk opened this issue Aug 18, 2023 · 3 comments
Open

Question regarding flops calculation #2

maryanpetruk opened this issue Aug 18, 2023 · 3 comments

Comments

@maryanpetruk
Copy link

Dear authors,
@xiuyu-sxy

I would like to verify the performance measures you have provided in your work, and particularly flops calculation.
Could you please let me know how one can reproduce flops numbers from the table in the Readme?
image

Thank you

@BeachWang
Copy link

You can use the get_complexity function in Vision_TransformerSuper to obtain the flops numbers.

@maryanpetruk
Copy link
Author

maryanpetruk commented Aug 21, 2023

You can use the get_complexity function in Vision_TransformerSuper to obtain the flops numbers.

Sure, but I don't understand what the sequence_length should be to get the numbers you have. It is inconsistent for three supernets: tiny, small and base.
Could you be so kind as to provide the value for the sequence_length parameter or values if those are different for the three supernets?

@BeachWang
Copy link

The image size is 224x224 in ImageNet. The patch size in ViT is 16x16. So I think the sequence_length is 14x14 for three supernets.

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