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

Does mmdet3d support calculating the model parameters or flops? #731

Closed
gujiaqivadin opened this issue Jul 12, 2021 · 6 comments
Closed

Comments

@gujiaqivadin
Copy link

Hello!
I am here to ask whether mmdet3d support calculating the model parameters or flops in current version code. Thanks a lot !

@Wuziyi616
Copy link
Contributor

Have a look at this instruction. MMDet3D can calculate flops and params just as MMDet does, though I am afraid some custom GPU ops won't be correctly calculated.

@gujiaqivadin
Copy link
Author

Thanks for your reply! The instruction is mainly designed for mmdet models with img shapes, does it also support points input? I try to copy it to my mmdet3d directory to calculate the models, but it didn't work and produced error messages.

@Wuziyi616
Copy link
Contributor

Thank you for pointing it out! Yes I discover that mmdet's get_flops.py can't be directly used here. I will raise a PR to support it in mmdet3d.

@Wuziyi616
Copy link
Contributor

See #736 where I do a quick development. However, we don't support multi-modality models (MVX-Net, ImVoteNet) and two-stage models now (PartA^2).

@gujiaqivadin
Copy link
Author

Thanks for your quick pr, and I will try to use it in my models tonight. Really appreciate it.

@Wuziyi616
Copy link
Contributor

Glad it helps :)

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