Instructions to use beomus/layoutxlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beomus/layoutxlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="beomus/layoutxlm")# Load model directly from transformers import AutoProcessor, AutoModelForTokenClassification processor = AutoProcessor.from_pretrained("beomus/layoutxlm") model = AutoModelForTokenClassification.from_pretrained("beomus/layoutxlm") - Notebooks
- Google Colab
- Kaggle
Finetuning LayoutXLM
#1
by leitouran - opened
Hi @beomus !
I'm trying to create a Spanish finetuned version of layouxlm for token classification, like you did for Japanese. Even though the data seems correclty pre-processed, I get a "ValueError: cannot reshape array of size 1908 into shape (1,512,4)" when attempting train the layoutxlm-base model with this data.
I'm struggling to find examples on how to fine-tune this model. Would you mind to share with me how you did it?
Thank you very much in advance.