Skip to content

Commit 8cf6993

Browse files
authored
Fix/feature extractor parameter (#428)
There is a regression using the default longest_edge parameter of the table image processor. In this PR, the value is set to longest_edge=1333, which shows no regression. https://github.com/Unstructured-IO/core-product/actions/runs/15167747926/job/42649970680
1 parent 0aa5f44 commit 8cf6993

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.3
2+
3+
* setting longest_edge=1333 to the table image processor
4+
15
## 1.0.2
26

37
* adding parameter to table image preprocessor related to the image size
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.2" # pragma: no cover
1+
__version__ = "1.0.3" # pragma: no cover

unstructured_inference/models/tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def initialize(
6565
# value not set in the configuration and needed for newer models
6666
# https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all/discussions/1
6767
self.feature_extractor.size["shortest_edge"] = 800
68+
self.feature_extractor.size["longest_edge"] = 1333
6869

6970
try:
7071
logger.info("Loading the table structure model ...")

0 commit comments

Comments
 (0)