Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

What is the correct way to convert bbox from label studio to LayoutLMv3Processor bbox format? #232

Open
aimlnerd opened this issue Jun 26, 2023 · 0 comments

Comments

@aimlnerd
Copy link

Hi
Used label studio for bbox annotation for LilT model.
It uses LayoutLMv3Processor below
https://huggingface.co/docs/transformers/model_doc/layoutlmv3#transformers.LayoutLMv3Model.forward.bbox

According to this documentation it says
Each bounding box should be a normalized version in (x0, y0, x1, y1) format, where (x0, y0) corresponds to the position of the upper left corner in the bounding box, and (x1, y1) represents the position of the lower right corner.
How to convert labelbox bbox to LayoutLMv3Processor bbox format?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant