Closed exhyy closed 3 months ago
Good question! Since I'm also unfamiliar with how fvcore
runs, maybe you can check how VMamba calculates GFLOPs manually.
Good question! Since I'm also unfamiliar with how
fvcore
runs, maybe you can check how VMamba calculates GFLOPs manually.
Thanks for your replay. I just found the answer at https://github.com/state-spaces/mamba/issues/110, which is used by VMamba.
Hi all, thanks for your great work! I am wandering how to compute the FLOPs reported in https://github.com/OpenGVLab/VideoMamba/blob/main/videomamba/image_sm/MODEL_ZOO.md. Take videomamba_tiny as example, I have tried running
python videomamba/image_sm/models/videomamba.py
with changing the model tovideomamba_tiny
. Then I got the computed FLOPs, 1.08G, which equals to the reported one. However, if I use the following piece of code:I will get some warnings:
I don't understand how
fvcore
computes FLOPs, but these warnings and the result offlops.by_operator()
seem to indicate that this calculation method is not correct.