Table Transformer (TATR) is a deep learning model for extracting tables from unstructured documents (PDFs and images). This is also the official repository for the PubTables-1M dataset and GriTS evaluation metric.
MIT License
2.02k
stars
232
forks
source link
Can any one provides a demo run exported onnx model? #120
Hi
I export the official table-transformer-structure-recognition checkpoint to onnx format by using Optimum-cli with the following command.
optimum-cli export onnx --model table-transformer-structure-recognition/ to_onnx/ --task object-detection
That gives me a single model.onnx file without any error output.
I noticed that the shape of the "pixel_mask" input becomes [1,64,64] in the onnx model, and in the original model should be the same shape as the "pixel_image" input.
I am really not sure if there is any problem with the model exporting. so I make an all 1 matrix as "pixel_mask" input and run the onnx model.
The model runs without any errors but gives me a different result.
Hi I export the official table-transformer-structure-recognition checkpoint to onnx format by using
Optimum-cli
with the following command.optimum-cli export onnx --model table-transformer-structure-recognition/ to_onnx/ --task object-detection
That gives me a single
model.onnx
file without any error output.I noticed that the shape of the "pixel_mask" input becomes [1,64,64] in the onnx model, and in the original model should be the same shape as the "pixel_image" input.
I am really not sure if there is any problem with the model exporting. so I make an all 1 matrix as "pixel_mask" input and run the onnx model.
The model runs without any errors but gives me a different result.
code I used to test onnx model: