mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

get_flops.py can not be used on PointRend

Open Sunny2884 opened this issue 4 months ago • 0 comments

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'

Sunny2884 avatar Sep 29 '24 08:09 Sunny2884