Transformers
PyTorch
English
layoutlmv2

Run this model with HF Jobs

Run microsoft/layoutlmv2-base-uncased on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/microsoft/layoutlmv2-base-uncased. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/microsoft/layoutlmv2-base-uncased on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

LayoutLMv2: Visual-Backbone unexpected behavior

#4
by de-Rodrigo - opened

Dear Community, I have been studying LayoutLMv2 for the last couple of months. I recently implemented a Saliency Map technique to visualize the most significant visual features for Token Classification, so I could understand more about "where the model is looking at in the image."

I have observed surprising behavior from these experiments: LayoutLMv2 almost wholly relies on the model's textual part, while the model's visual part (visual backbone) contributes nearly nothing. I could even train LayoutLMv2 with black-out images (adequately labeled so that the textual part could work) and still obtain the same results as when conventionally trained. This result suggests that the visual backbone is not working correctly (or I am doing something wrong).

Could I share my pieces of evidence with you?
Teamwork makes the dreamwork

1 (5).jpg

Sign up or log in to comment