Comments (13)
Hi,
Check if "dataset_name_or_paths" parameter value is same or not during train & test.
from donut.
@vishal-nayak1 Thank you for the response.
I have checked the dataset_name_or_path
, it is the same for training and inference.
from donut.
@BakingBrains you can refer to this article for inferencing on the image- https://towardsdatascience.com/ocr-free-document-understanding-with-donut-1acfbdf099be
from donut.
@vishal-nayak1 I referred the same blog. I don't know why the results are different.
from donut.
Hey @BakingBrains did you solve this problem, i m stuck with this.
from donut.
@Codedrainer Yeah, I basically started everything from scratch again. Created a new env, prepared a small dataset and started the training as mentioned. All worked fine.
from donut.
Hey @BakingBrains did you solve this problem, i m stuck with this.
@Codedrainer Hi, Have you solved this problem? I also meet this problem.
from donut.
@wawaa Yeahh, Actually i am using wrong prompt values here.
output = model.inference(image=image, prompt="<s_id_number>")
i have replaced <s_id_number> to <s_dataset> and it's working.
from donut.
@wawaa Yeahh, Actually i am using wrong prompt values here.
output = model.inference(image=image, prompt="<s_id_number>")
i have replaced <s_id_number> to <s_dataset> and it's working.
OK, Thanks!
from donut.
Hello @BakingBrains, I need some assistance with dataset information. I currently have a dataset consisting of 800 images for training, 100 for testing, and 100 for validation. I've successfully trained the model and received the following accuracy scores:
Total number of samples: 100
Tree Edit Distance (TED) based accuracy score: 0.9476799242424243
F1 accuracy score: 0.5213032581453634
After achieving a TED accuracy of 94%, I decided to delve deeper into the dataset for a more thorough analysis. The goal is to parse a document containing a 15-digit alphanumeric invoice number. Upon reviewing the testing results, I noticed a consistent issue: everything was predicted correctly except for the third character from the end of the invoice number. In this position, the model consistently predicted a '2' as a '1'. Out of 100 images tested, 94 contained this inaccuracy.
This is a significant issue because an error in predicting any character of the invoice number renders the entire invoice number incorrect, undermining the utility of using AI for this prediction task.
Could you provide guidance on how to improve the model’s accuracy in predicting this specific character position in the invoice number?
from donut.
@Codedrainer I faced a similar issue with two of the keys from a document,
What I did is, Pretrained on the dataset with image size 2560 X 1920 for 20 epochs. And using the checkpoint I did the finetuning with lower image size.. The issue was not completely solved but the accuracy was above 96%.
from donut.
Hello @BakingBrains, thank you for your time. Initially, I had a comprehensive document from which I aimed to extract only the invoice number. Direct training of the Donut model on the entire document didn't yield satisfactory accuracy. To improve this, I applied YOLOv8 object detection to isolate the section containing the invoice number. After cropping this specific section, I retrained the model, which led to a distinct situation as mentioned earlier.
from donut.
@BakingBrains I'm currently pondering why the Donut model isn’t delivering promising results despite being provided with a clear image featuring a 15-character alphanumeric text. Presently, the images, akin to the one I'm utilizing, have dimensions of 428 x 24 pixels.
from donut.
Related Issues (20)
- How to extract complete text from the document? HOT 3
- confidence 값의 공식적인 지원
- Classification inference
- Update donut-python Python Package to be compatible with latest versions of transformers
- donut inference시 sub task가 변경?
- Not getting prediction correctly using the model trained on the custom dataset (similar format as CORD-V2 dataset) HOT 6
- not work this app.py
- Can synthdog insert text for a specified bbox? HOT 1
- Where is the fine-tuned model?
- Why is the output of the intermediate verification empty after training?
- Donut generate ONLY <s><s>...<s></s> HOT 7
- Performance of the model HOT 1
- How to improve OCR accuracy for Japanese characters? HOT 2
- Early Stopping
- How many documents(invoices) are required for training model for document information extraction?
- What should be the configuration of the machine to train the model?
- Hindi Synthdog
- How to interpret the results of the Japanese document?
- Issue with Fine-Tuning: Incorrect Answers When Querying Specific Questions HOT 1
- DocVQA input input_ids at training time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from donut.