Skip to content

Commit

Permalink
fix dy shapes of trt for rec models
Browse files Browse the repository at this point in the history
  • Loading branch information
TingquanGao committed Feb 10, 2025
1 parent 2376b03 commit a5294be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppocr/utils/export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def dump_infer_config(config, path, logger):
arch_config = config["Architecture"]
if arch_config["algorithm"] in ["SVTR_LCNet", "SVTR_HGNet"]:
common_dynamic_shapes = {
"x": [[1, 3, 24, 160], [1, 3, 48, 320], [8, 3, 96, 640]]
"x": [[1, 3, 48, 160], [1, 3, 48, 320], [8, 3, 48, 640]]
}
elif arch_config["model_type"] == "det":
common_dynamic_shapes = {
Expand Down

0 comments on commit a5294be

Please sign in to comment.