thomcerb commited on
Commit
0532939
1 Parent(s): 78abada

Update preprocessor_config.json

Browse files

Hello

@Xenova
,
Thank you for the good work, having an ONNX version of this model is quite nice! I found out that only specifying the longest edge does not work with latest version of `transformers` (4.38.1), and using either `DetrImageProcessor`, `DetrFeatureExtractor` (deprecated) or `AutoImageProcessor` classes for instantiation. Rolling back to the configuration from `Xenova/table-transformer-structure-recognition` does seem to give good results, i.e.:
```
"size": {
"longest_edge": 1000,
"shortest_edge": 800
}
```
What do you think?

Files changed (1) hide show
  1. preprocessor_config.json +2 -1
preprocessor_config.json CHANGED
@@ -18,6 +18,7 @@
18
  "resample": 2,
19
  "rescale_factor": 0.00392156862745098,
20
  "size": {
21
- "longest_edge": 800
 
22
  }
23
  }
 
18
  "resample": 2,
19
  "rescale_factor": 0.00392156862745098,
20
  "size": {
21
+ "longest_edge": 1000,
22
+ "shortest_edge": 800
23
  }
24
  }