Skip to content

Commit 26b66ef

Browse files
authored
fix with_argmax for mmseg (#2056)
1 parent 9385eed commit 26b66ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mmdeploy/codebase/mmseg/deploy/segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ def get_postprocess(self, *args, **kwargs) -> Dict:
303303
params = self.model_cfg.model.decode_head
304304
if isinstance(params, list):
305305
params = params[-1]
306-
postprocess = dict(params=params, type='ResizeMask')
307306
with_argmax = get_codebase_config(self.deploy_cfg).get(
308307
'with_argmax', True)
309-
postprocess['with_argmax'] = with_argmax
308+
params['with_argmax'] = with_argmax
309+
postprocess = dict(params=params, type='ResizeMask')
310310
return postprocess
311311

312312
def get_model_name(self, *args, **kwargs) -> str:

0 commit comments

Comments
 (0)