mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
fix with_argmax for mmseg (#2056)
This commit is contained in:
parent
9385eed16f
commit
26b66ef511
@ -303,10 +303,10 @@ class Segmentation(BaseTask):
|
|||||||
params = self.model_cfg.model.decode_head
|
params = self.model_cfg.model.decode_head
|
||||||
if isinstance(params, list):
|
if isinstance(params, list):
|
||||||
params = params[-1]
|
params = params[-1]
|
||||||
postprocess = dict(params=params, type='ResizeMask')
|
|
||||||
with_argmax = get_codebase_config(self.deploy_cfg).get(
|
with_argmax = get_codebase_config(self.deploy_cfg).get(
|
||||||
'with_argmax', True)
|
'with_argmax', True)
|
||||||
postprocess['with_argmax'] = with_argmax
|
params['with_argmax'] = with_argmax
|
||||||
|
postprocess = dict(params=params, type='ResizeMask')
|
||||||
return postprocess
|
return postprocess
|
||||||
|
|
||||||
def get_model_name(self, *args, **kwargs) -> str:
|
def get_model_name(self, *args, **kwargs) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user