You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified the code in flops.py and commented out the patch_embed in backbone_vssm in vmamba.py to calculate the FLOPs for a single VSSM block.
Will this give an accurate result for the FLOPs of a single VSSM block?
the output
The text was updated successfully, but these errors were encountered:
batman47steam
changed the title
If I use a VSSM block in my new model, how can I quickly calculate the FLOPs?
If I use a VSSM block in a model, how can I quickly calculate the FLOPs?
Oct 5, 2024
Thank you for your reply; that was very helpful. I'd like to ask further about the impact of those unsupported operations on the final results. Can they be ignored?
For vmamba specific,the selective_scan operation is supported by our own implemented flops_count (so it should not appear in the unsupported list), the crossscantritonF is just a copy operation, so it has no effect on flops. For other operations,you can refer to networks without ss2d.
I modified the code in flops.py and commented out the
patch_embed
inbackbone_vssm
in vmamba.py to calculate the FLOPs for a single VSSM block.Will this give an accurate result for the FLOPs of a single VSSM block?
the output
The text was updated successfully, but these errors were encountered: