Skip to content

Commit

Permalink
[Bug] Fixed assume_straight_pages for custom models (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabioomega authored Jul 29, 2024
1 parent 1cea7d8 commit a659425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doctr/models/detection/zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _predictor(arch: Any, pretrained: bool, assume_straight_pages: bool = True,

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

kwargs.pop("pretrained_backbone", None)

Expand Down

0 comments on commit a659425

Please sign in to comment.