Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ground_truth = json.loads(sample["ground_truth"]) KeyError: 'ground_truth' #318

Open
monarchmio opened this issue Oct 10, 2024 · 0 comments

Comments

@monarchmio
Copy link

I am using a dataset that I created, and the content format of the JSON file is as follows:

{"file_name": "document_100.png", "ground_truth": "{"gt_parse": {"patient_id": 659136, "patient_name": "中村 篤司", "amount": "¥21,976.00", "date": "1983-06-13", "hospital": "東京病院", "description": "入院費用"}}"}
When training, I encounter the error KeyError: 'ground_truth' when executing ground_truth = json.loads(sample["ground_truth"]). How can I resolve this issue?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant