Skip to content

Commit a659425

Browse files
authored
[Bug] Fixed assume_straight_pages for custom models (#1681)
1 parent 1cea7d8 commit a659425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doctr/models/detection/zoo.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def _predictor(arch: Any, pretrained: bool, assume_straight_pages: bool = True,
6161

6262
_model = arch
6363
_model.assume_straight_pages = assume_straight_pages
64+
_model.postprocessor.assume_straight_pages = assume_straight_pages
6465

6566
kwargs.pop("pretrained_backbone", None)
6667

0 commit comments

Comments
 (0)