Skip to content

Commit

Permalink
fix unnecessary change of config for dynamic exportation (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon authored Mar 8, 2022
1 parent 8552d35 commit 937985e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdeploy/codebase/mmseg/deploy/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def process_model_config(model_cfg: mmcv.Config,
# for static exporting
if input_shape is not None:
cfg.data.test.pipeline[1]['img_scale'] = tuple(input_shape)
cfg.data.test.pipeline[1]['transforms'][0]['keep_ratio'] = False
cfg.data.test.pipeline[1]['transforms'][0]['keep_ratio'] = False
cfg.data.test.pipeline = [LoadImage()] + cfg.data.test.pipeline[1:]

return cfg
Expand Down

0 comments on commit 937985e

Please sign in to comment.