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

How to test the calculation amount (Flops) of solov2? Thank you~ #230

Open
solauky opened this issue Jul 3, 2022 · 0 comments
Open

How to test the calculation amount (Flops) of solov2? Thank you~ #230

solauky opened this issue Jul 3, 2022 · 0 comments

Comments

@solauky
Copy link

solauky commented Jul 3, 2022

Hello, how should I test the calculation amount (Flops) of solov2 in mmdetection2.5? How to debug? I used "get_flops.py" but the result showed "NotImplementedError: forward_dummy is not implemented in SOLOv2". Thank you~

Traceback (most recent call last):
File "tools/analysis_tools/get_flops.py", line 97, in
main()
File "tools/analysis_tools/get_flops.py", line 82, in main
flops, params = get_model_complexity_info(model, input_shape)
File "/home/scsc01/anaconda3/envs/lxx220/lib/python3.7/site-packages/mmcv/cnn/utils/flops_counter.py", line 105, in get_model_complexity_info
_ = flops_model(batch)
File "/home/scsc01/anaconda3/envs/lxx220/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1071, in _call_impl
result = forward_call(*input, **kwargs)
File "/home/scsc01/lxx220/mmdet/models/detectors/single_stage_instance_seg.py", line 69, in forward_dummy
f'forward_dummy is not implemented in {self.class.name}')
NotImplementedError: forward_dummy is not implemented in SOLOv2

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

1 participant