Transformers-Tutorials icon indicating copy to clipboard operation
Transformers-Tutorials copied to clipboard

How are the image embeddings being set to LayoutLM model?

Open ravilkashyap opened this issue 5 years ago • 2 comments

Thankyou for the notebook on using LayoutLM model. I am not able to figure out the part where we are sending image embeddings through Faster-RCNN. This code only relies on text is it?

ravilkashyap avatar Feb 15 '21 14:02 ravilkashyap

Hi,

The implementation I'm using does not add image embeddings indeed. However, as Faster-RCNN seemed rather complex to me, I'm currently working on adding features from Facebook AI's DETR.

NielsRogge avatar Feb 25 '21 10:02 NielsRogge

Hi @ravilkashyap @alejandrojcastaneira,

As there was a lot of demand for this, I've created a notebook that illustrates how to add image embeddings from a pre-trained backbone to LayoutLM: https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Add_image_embeddings_to_LayoutLM.ipynb

NielsRogge avatar Mar 29 '21 15:03 NielsRogge