Skip to content

Commit

Permalink
pooling size and shrink ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
odulcy-mindee committed Mar 10, 2024
1 parent 566676c commit 5e98722
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/fast/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class _FAST(BaseModel):

min_size_box: int = 3
assume_straight_pages: bool = True
shrink_ratio = 0.1
shrink_ratio = 0.4

def build_target(
self,
Expand Down
2 changes: 1 addition & 1 deletion doctr/models/detection/fast/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(
bin_thresh: float = 0.3,
box_thresh: float = 0.1,
dropout_prob: float = 0.1,
pooling_size: int = 9,
pooling_size: int = 4,
assume_straight_pages: bool = True,
exportable: bool = False,
cfg: Optional[Dict[str, Any]] = {},
Expand Down

0 comments on commit 5e98722

Please sign in to comment.