| --- |
| language: en |
| license: cc-by-nc-sa-4.0 |
| tags: |
| - endpoints-template |
| library_name: generic |
| model-index: |
| - name: layoutlmv2-base-uncased |
| results: [] |
| pipeline_tag: other |
| --- |
| |
| # LayoutLMv2 |
| **Multimodal (text + layout/format + image) pre-training for document AI** |
|
|
| The documentation of this model in the Transformers library can be found [here](https://huggingface.co/docs/transformers/model_doc/layoutlmv2). |
|
|
| [Microsoft Document AI](https://www.microsoft.com/en-us/research/project/document-ai/) | [GitHub](https://github.com/microsoft/unilm/tree/master/layoutlmv2) |
| ## Introduction |
| LayoutLMv2 is an improved version of LayoutLM with new pre-training tasks to model the interaction among text, layout, and image in a single multi-modal framework. It outperforms strong baselines and achieves new state-of-the-art results on a wide variety of downstream visually-rich document understanding tasks, including , including FUNSD (0.7895 → 0.8420), CORD (0.9493 → 0.9601), SROIE (0.9524 → 0.9781), Kleister-NDA (0.834 → 0.852), RVL-CDIP (0.9443 → 0.9564), and DocVQA (0.7295 → 0.8672). |
|
|
| [LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding](https://arxiv.org/abs/2012.14740) |
| Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, Min Zhang, Lidong Zhou, ACL 2021 |
|
|
|
|
| Examples & Guides |
|
|
| - https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/DocVQA/Fine_tuning_LayoutLMv2ForQuestionAnswering_on_DocVQA.ipynb |
|
|
| - https://mccormickml.com/2020/03/10/question-answering-with-a-fine-tuned-BERT/ |
|
|
|
|
| # Warnings |
|
|
| ``` |
| The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use LayoutLMv2ImageProcessor instead. |
| ``` |