Merge pull request #7232 from tink2123/revert_imgh_2.5

rever rec input h
pull/7285/head^2
andyjpaddle 2022-08-17 17:16:01 +08:00 committed by GitHub
commit eed3d6aaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def export_single_model(model,
else:
infer_shape = [3, -1, -1]
if arch_config["model_type"] == "rec":
infer_shape = [3, 48, -1] # for rec model, H must be 32
infer_shape = [3, 32, -1] # for rec model, H must be 32
if "Transform" in arch_config and arch_config[
"Transform"] is not None and arch_config["Transform"][
"name"] == "TPS":