DocBank icon indicating copy to clipboard operation
DocBank copied to clipboard

How to do inference with LayoutLM?

Open louisabraham opened this issue 4 years ago • 1 comments

Hi, I'm trying to use run_seq_labeling.py from https://github.com/microsoft/unilm/tree/master/layoutlm on your data. However, the input format looks different.

Theirs uses _box.txt files that contain all samples.

I also noticed that run_seq_labeling.py adds a label "O" but your labels.txt files already has 13 classes like the pretrained models you provide, which makes me doubt that you used run_seq_labeling.py to train your model. Can you provide your training / evaluation code?

louisabraham avatar Jan 28 '21 17:01 louisabraham

Our training code is also based on LayoutLM, so there is no plan to provide it.

liminghao1630 avatar Apr 16 '21 06:04 liminghao1630