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

get_flops.py can not be used on PointRend #3781

Open
Sunny2884 opened this issue Sep 29, 2024 · 0 comments
Open

get_flops.py can not be used on PointRend #3781

Sunny2884 opened this issue Sep 29, 2024 · 0 comments

Comments

@Sunny2884
Copy link

PS E:\pycharm\network\mmsegmentation> & D:/software/anaconda3/install/envs/mmlab/python.exe e:/pycharm/network/mmsegmentation/tools/analysis_tools/get_flops.py
e:\pycharm\mmsegmentation\mmseg\models\builder.py:36: UserWarning: build_loss would be deprecated soon, please use mmseg.registry.MODELS.build()
warnings.warn('build_loss would be deprecated soon, please use '
e:\pycharm\mmsegmentation\mmseg\models\losses\cross_entropy_loss.py:249: UserWarning: Default avg_non_ignore is False, if you would like to ignore the certain label and average loss over non-ignore labels, which is the same with PyTorch official cross_entropy, set avg_non_ignore=True.
warnings.warn(
Traceback (most recent call last):
File "e:\pycharm\network\mmsegmentation\tools\analysis_tools\get_flops.py", line 126, in
main()
File "e:\pycharm\network\mmsegmentation\tools\analysis_tools\get_flops.py", line 106, in main
result = inference(args, logger)
File "e:\pycharm\network\mmsegmentation\tools\analysis_tools\get_flops.py", line 85, in inference
if cfg.model.decode_head.type in ['MaskFormerHead', 'Mask2FormerHead']:
AttributeError: 'list' object has no attribute 'type'

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