# Can LayoutLM be used for images?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-layoutlm-be-used-for-images%2F1723%3E%5C
**Category:** Beginners\
**Created:** [October 24, 2020, 2:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-layoutlm-be-used-for-images%2F1723 "2020-10-24T14:16:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eveningkid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/eveningkid/32/518_2.png) [@eveningkid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Feveningkid)%5C
**Post date:** [October 24, 2020, 2:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-layoutlm-be-used-for-images%2F1723%2F1 "2020-10-24T14:16:41Z")

</div>

Hi,

I am very new to transformers and found out about it when looking for a LayoutLM implementation.

Now from my understanding, LayoutLM can be used to extract information from a document based on the layout it guessed.

When browsing the documentation, **I could only see examples using plain text** and I don’t know where to begin to put an image instead.

If it would be possible to help a newbie like me, **showing how to pass it an image and how to interpret the results** , you would really make me an happy man!!

I really hope someone can help me.

Have a great day 🙂

---

<div class="post-metadata">

**Author:** ![rgwatwormhill](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@rgwatwormhill](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Frgwatwormhill)%5C
**Post date:** [November 18, 2020, 3:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-layoutlm-be-used-for-images%2F1723%2F2 "2020-11-18T15:17:39Z")

</div>

Hi eveningkid,

transformer models are designed for text.

It might be possible to force the model to accept a numeric representation of an image (after all, it’s all ones and noughts), but it would be unlikely to do anything useful.

---

<div class="post-metadata">

**Author:** ![hasansalimkanmaz](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@hasansalimkanmaz](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhasansalimkanmaz)%5C
**Post date:** [January 11, 2021, 5:43am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcan-layoutlm-be-used-for-images%2F1723%2F3 "2021-01-11T05:43:41Z")

</div>

Especially Image embeddings are not implemented and open-sourced. You can see this [thread](https://github.com/microsoft/unilm/issues/165) but it should be harder according to the thread
