You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the train_cfg is 'dict(by_epoch=True, max_epochs=100, val_interval=1 )' and test_cfg is 'dict()'.
In the build_segmentation function:
defbuild_segmentor(cfg, train_cfg=None, test_cfg=None):
"""Build segmentor."""iftrain_cfgisnotNoneortest_cfgisnotNone:
warnings.warn(
'train_cfg and test_cfg is deprecated, ''please specify them in model', UserWarning)
assertcfg.get('train_cfg') isNoneortrain_cfgisNone, \
'train_cfg specified in both outer field and model field 'assertcfg.get('test_cfg') isNoneortest_cfgisNone, \
'test_cfg specified in both outer field and model field 'returnSEGMENTORS.build(
cfg, default_args=dict(train_cfg=train_cfg, test_cfg=test_cfg))
ifhasattr(model, 'forward_dummy'):
model.forward=model.forward_dummyelse:
raiseNotImplementedError(
'FLOPs counter is currently not currently supported with {}'.format(model.__class__.__name__))
It is necessary to update.
The text was updated successfully, but these errors were encountered:
LovingThresh
changed the title
Whether the files in the tools/analysis_tools/get_flops.py have not been corrected in time?
Whether the files in the tools/analysis_tools/get_flops.py have not been corrected in time in mmsegmentation 1.0.0+?
Mar 9, 2023
the build function is:
where the train_cfg is 'dict(by_epoch=True, max_epochs=100, val_interval=1 )' and test_cfg is 'dict()'.
In the build_segmentation function:
will have a error:
And this part is alse extra:
It is necessary to update.
The text was updated successfully, but these errors were encountered: