manikanthp / LayoutLMV3_Fine_Tuning

48 stars 20 forks source link

"image" key is expected in task data [assume: item["data"] #2

Closed deepakbandela closed 1 year ago

deepakbandela commented 1 year ago

I tried to import the file generated by the script "Create_LMV3_dataset_with_Paddle.py" which generated file "TC_label-studio_input_file.json"

However when uploading the above generated json file to Labelstudio it gives the following error. It is expecting "image" tag in "data". When I change the "ocr" to 'image" it is loading properly.

Error at item 0: "image" key is expected in task data [assume: item["data"] = task root with values] :: {'data': {'ocr': Below is he screenshot. image

Can you let me know what is going wrong?

deepakbandela commented 1 year ago

I found it.

I got it resolved too.

The mode of selection should be OCR from the document. Else it will give this error.

deepakbandela commented 1 year ago

Closing the issue