Comments (3)
Hi,
I also experienced this, results can slightly differ between different runs. This is logical, as neural networks are not deterministic (unless using the same seed). However, running the notebook several times, I got the following results:
'overall_precision': 0.798961937716263, 'overall_recall': 0.8350813743218807, 'overall_f1': 0.8166224580017684
Which is (more or less) in line with the paper. The differences can be explained by the use of a different OCR engine (I'm using PyTesseract, whereas the original model used Azure Cognitive Services). You could also try with the OCR annotations already provided by the FUNSD dataset itself.
Also, the slight differences could be explained by the training hyperparameters (optimizer, learning rate, batch size, number of epochs, etc.)
Update: as can be seen here, they used the default HuggingFace Trainer, with the following additional hyperparameters:
--max_steps 1000 \
--warmup_ratio 0.1 \
--fp16
from transformers-tutorials.
I've uploaded a new notebook, which uses the HuggingFace Trainer and uses the same hyperparameters as the original implementation. Now I get:
'test_overall_precision': 0.8190854870775348, 'test_overall_recall': 0.8268941294530858, 'test_overall_f1': 0.8229712858926342'
from transformers-tutorials.
Thanks a lot. I will try out the new notebook once.
from transformers-tutorials.
Related Issues (20)
- UDOP FUNSD , not able to perform Inference HOT 2
- LayoutLM prediction with confidence score? HOT 1
- Table transformer crop issue
- UDOP - How to change UdopToknizer to another tokenizer that supports CJK languages? HOT 1
- How can we Fine Tune Pix2StruCt for DocVQA task?
- UDOP - Is it possible to get several bboxes from one single input ?
- [Bug] Owlv2 Zero-shot object detection
- True Inference with Layoutlmv3 HOT 2
- Huge negative loss while fine-tuning SAM HOT 2
- Grounding Dino - Multiple Class HOT 3
- Fine tune TrOCR on IAM Handwriting Database using Seq2SeqTrainer HOT 13
- [Finetuning OneFormer] How to use multiple GPUs
- can't login to push hub model
- Mask2Former panoptic fine-tune HOT 3
- SAM Instance segmentation Finetuning output mask with instance lablel
- Table transformer demo not handling empty cells
- "Unused or unrecognized kwargs: padding" error when running notebook example
- UDOP - Fine tuning with bad metrics HOT 2
- Adding Inference Pipeline for Table-Transformer HOT 1
- - [x] https://github.com/NielsRogge/Transformers-Tutorials/issues/421#issue-2287902399
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 transformers-tutorials.