kie inference 模型导出与原权重推理结果不一致 #12399
Unanswered
papersuper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
paddlefsl 1.1.0
paddlenlp 2.5.2
paddleocr 2.7.0.3
paddlepaddle 2.5.2
问题相关组件/Related components:
导出模型指令:python tools/export_model.py -c configs/kie/vi_layoutxlm/ser_vi_layoutxlm_xfund_zh.yml -o Global.pretrained_model=output/ser_vi/best_accuracy Global.save_inference_dir=./inference/train_infer_weight2
cd ppstructure
推理指令:
python predict_system.py --kie_algorithm=LayoutXLM --ser_model_dir=../inference/train_infer_weight2 --image_dir=./tra3.jpg --ser_dict_path=./class_list.txt --vis_font_path=../doc/fonts/simfang.ttf --ocr_order_method="tb-yx" --mode=kie
kie模型微调后,进行预测效果好,但是转换成推理模型后进行预测,预测结果非常不准确,请问这个怎么解决呢
Beta Was this translation helpful? Give feedback.
All reactions