# Error while using LILT model "index out of range in self"

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-lilt-model-index-out-of-range-in-self%2F41242%3E%5C
**Category:** 🤗Transformers\
**Created:** [May 28, 2023, 8:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-lilt-model-index-out-of-range-in-self%2F41242 "2023-05-28T20:53:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnielsr)%5C
**Post date:** [February 25, 2024, 8:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-lilt-model-index-out-of-range-in-self%2F41242%2F3 "2024-02-25T20:24:34Z")

</div>

Make sure to normalize your bounding boxes before passing them to the model.

LiLT requires the same normalization as LayoutLM, which is explained here: [LayoutLM](https://huggingface.co/docs/transformers/v4.38.1/en/model_doc/layoutlm#usage-tips)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-while-using-lilt-model-index-out-of-range-in-self%2F41242)._
