TEDS score doesnt match the one reported on the paper #14555
Replies: 1 comment 1 reply
-
The issue you are encountering—where the TEDS score or the inference results from the exported model do not match those seen during training—is likely due to discrepancies in how the model processes the data during training, evaluation, and inference. Below, we address possible root causes and provide steps to debug and resolve the problem. Potential Causes and Solutions1. Mismatch Between Training and Inference Configurations
Solution:
2. Incorrect Handling of Pretrained Weights During Export
Solution:
3. Postprocessing Issues in
|
Beta Was this translation helpful? Give feedback.
-
🔎 Search before asking
🐛 Bug (问题描述)
I have a problem, when I try to run the TEDS score on PubTabNet with this prompt
python3 ppstructure/table/eval_table.py --det_model_dir=output2/en_ppocr_mobile_v2.0_table_det_infer --rec_model_dir=output2/en_ppocr_mobile_v2.0_table_rec_infer --table_model_dir=output2/en_ppstructure_mobile_v2.0_SLANet_infer --image_dir=/data/Datasets/pubtabnet/pubtabnet/val/ --rec_char_dict_path=ppocr/utils/dict/table_dict.txt --table_char_dict_path=ppocr/utils/dict/table_structure_dict.txt --det_limit_side_len=736 --det_limit_type=min --rec_image_shape=3,32,320 --gt_path=output2/gt.txt
and I get
ppocr INFO: teds: 0.4682228148448854
🏃♂️ Environment (运行环境)
paddleocr 2.9.1
paddlepaddle-gpu 3.0.0b1
OS x86_64
CUDA 12.4
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
python3 ppstructure/table/eval_table.py --det_model_dir=output2/en_ppocr_mobile_v2.0_table_det_infer --rec_model_dir=output2/en_ppocr_mobile_v2.0_table_rec_infer --table_model_dir=output2/en_ppstructure_mobile_v2.0_SLANet_infer --image_dir=/data/Datasets/pubtabnet/pubtabnet/val/ --rec_char_dict_path=ppocr/utils/dict/table_dict.txt --table_char_dict_path=ppocr/utils/dict/table_structure_dict.txt --det_limit_side_len=736 --det_limit_type=min --rec_image_shape=3,32,320 --gt_path=output2/gt.txt
Beta Was this translation helpful? Give feedback.
All reactions