unilm icon indicating copy to clipboard operation
unilm copied to clipboard

How to get bbox on funsd model prediction

Open sryeddula opened this issue 6 years ago • 2 comments

Model I am using (LayoutLM[seq_labeling]):

After successfully training using FUNSD data set. When I try to predict I am only getting test_predictions bunt not bounding box co-ordinates. Can you please help me get bounding boxes on prediction

sryeddula avatar Jul 19 '20 14:07 sryeddula

its output is in the same order as your passed input tokens. You can easily map your bounding boxes to the corresponding prediction tokens as they are separated by new line tokens.

sibtain-r avatar Jul 19 '20 15:07 sibtain-r

@SibtainRazaJamali @sryeddula Can you share the command you used to run the --do_predict? also, do we have to retrain on FUNSD, or can we use the pretrained weights to predict?

elnazsn1988 avatar Aug 03 '20 02:08 elnazsn1988