File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 1.0.2
2+
3+ * adding parameter to table image preprocessor related to the image size
4+
15## 1.0.1
26
37* fix: moving the table transformer model to device when loading the model instead of once the model is loaded.
Original file line number Diff line number Diff line change 1- __version__ = "1.0.1 " # pragma: no cover
1+ __version__ = "1.0.2 " # pragma: no cover
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ def initialize(
6262 """Loads the donut model using the specified parameters"""
6363 self .device = device
6464 self .feature_extractor = DetrImageProcessor .from_pretrained (model )
65+ # value not set in the configuration and needed for newer models
66+ # https://huggingface.co/microsoft/table-transformer-structure-recognition-v1.1-all/discussions/1
67+ self .feature_extractor .size ["shortest_edge" ] = 800
6568
6669 try :
6770 logger .info ("Loading the table structure model ..." )
You can’t perform that action at this time.
0 commit comments