Skip to content

Commit

Permalink
fix assume_straight_pages with custom loaded models
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Jan 13, 2025
1 parent aa20687 commit b55d58f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onnxtr/models/detection/zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def _predictor(
raise ValueError(f"unknown architecture: {type(arch)}")

_model = arch
_model.assume_straight_pages = assume_straight_pages
_model.postprocessor.assume_straight_pages = assume_straight_pages

kwargs["mean"] = kwargs.get("mean", _model.cfg["mean"])
Expand Down

0 comments on commit b55d58f

Please sign in to comment.