-
Notifications
You must be signed in to change notification settings - Fork 143
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
get_flops.py #168
Comments
Hi, you can try this command before running the python script: |
Hey, I try this but
KeyError: 'SinePositionalEncoding is already registered in position encoding' error like this |
Sorry, there seems a bug in the |
Thanks. Btw, could you give me a example code to run get_flops? I'm using mask2former_beit_adapter_large_896_80k_mapillary.pth.tar Looks quite different from using image_demo.py |
I think maybe you can try a command like this: |
python get_flops.py mask2former_beit_adapter_large_896_80k_mapillary.pth.tar --shape 360 480 I changed ur suggestion little bit cuz previous error is ----ss.py is not a check point. so I replaced it as a .pth.tar. but error like this |
The "not a check point" error is caused by the pre-trained checkpoint, not by ".py". When counting flops or parameters, you don't really need a checkpoint file or pretrained file. So you can change |
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Then, error like above, quite difficult to use it XD anyway, thanks for your rapid reply :) |
Have you changed the |
Yeah, it doesn't work. idk what is the problem now, but I'll keep try it. |
I had a similar problem, but I wrote a custom model as the author wrote it, and it was registered, but he still got an error: KeyError: "MaskRCNN: 'IMViTAdapter is not in the models registry'".Even if I use "python ViT-Adapter-main/detection/get_flops.py ViT-Adapter-main/detection/mmdet_custom/models/backbones/vit_adapter.py --shape 1024 1024", he will also report an error KeyError: "MaskRCNN: 'ViTBaseline is not in the models registry'" |
Hi, I'm trying to use get_flops to get params and flops(MACs * 2).
But, when I ran it with just default setup like only
python get_flops.py
.
Traceback (most recent call last):
File "get_flops.py", line 11, in
import mmdet_custom # noqa: F401,F403
ModuleNotFoundError: No module named 'mmdet_custom'
error is occured like above.
I followed all the instructions in segmentation folder, and image_demo.py works well. what is the problem?
The text was updated successfully, but these errors were encountered: