Skip to content

Commit

Permalink
small correction
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Nov 22, 2024
1 parent 6eb3455 commit 51b058c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doctr/models/detection/predictor/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def forward(
pages: list[np.ndarray | torch.Tensor],
return_maps: bool = False,
**kwargs: Any,
) -> list[dict[str, np.ndarray]] | tuple[list[dict[str, np.ndarray]] | list[np.ndarray]]:
) -> list[dict[str, np.ndarray]] | tuple[list[dict[str, np.ndarray]], list[np.ndarray]]:
# Extract parameters from the preprocessor
preserve_aspect_ratio = self.pre_processor.resize.preserve_aspect_ratio
symmetric_pad = self.pre_processor.resize.symmetric_pad
Expand Down
2 changes: 1 addition & 1 deletion doctr/models/detection/predictor/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __call__(
pages: list[np.ndarray | tf.Tensor],
return_maps: bool = False,
**kwargs: Any,
) -> list[dict[str, np.ndarray]] | tuple[list[dict[str, np.ndarray]] | list[np.ndarray]]:
) -> list[dict[str, np.ndarray]] | tuple[list[dict[str, np.ndarray]], list[np.ndarray]]:
# Extract parameters from the preprocessor
preserve_aspect_ratio = self.pre_processor.resize.preserve_aspect_ratio
symmetric_pad = self.pre_processor.resize.symmetric_pad
Expand Down

0 comments on commit 51b058c

Please sign in to comment.