Skip to content

Commit 937985e

Browse files
authored
fix unnecessary change of config for dynamic exportation (#199)
1 parent 8552d35 commit 937985e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmdeploy/codebase/mmseg/deploy/segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def process_model_config(model_cfg: mmcv.Config,
3636
# for static exporting
3737
if input_shape is not None:
3838
cfg.data.test.pipeline[1]['img_scale'] = tuple(input_shape)
39-
cfg.data.test.pipeline[1]['transforms'][0]['keep_ratio'] = False
39+
cfg.data.test.pipeline[1]['transforms'][0]['keep_ratio'] = False
4040
cfg.data.test.pipeline = [LoadImage()] + cfg.data.test.pipeline[1:]
4141

4242
return cfg

0 commit comments

Comments
 (0)