Instructions to use microsoft/table-transformer-structure-recognition-v1.1-pub with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/table-transformer-structure-recognition-v1.1-pub with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="microsoft/table-transformer-structure-recognition-v1.1-pub")# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("microsoft/table-transformer-structure-recognition-v1.1-pub") model = AutoModelForObjectDetection.from_pretrained("microsoft/table-transformer-structure-recognition-v1.1-pub") - Notebooks
- Google Colab
- Kaggle
Error in demo
#1
by abelash - opened
I am trying upload image with table and got error:
Size must contain 'height' and 'width' keys or 'shortest_edge' and 'longest_edge' keys. Got dict_keys(['longest_edge']).
Have the some issue. Maybe is related to a different version of some package? Any help?