fix unnecessary change of config for dynamic exportation (#199)

pull/224/head
RunningLeon 2022-03-08 19:32:55 +08:00 committed by GitHub
parent 8552d35ceb
commit 937985e8f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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