把表格结构预测换成tablemaster出错 #13006
Replies: 3 comments
-
您好,麻烦提供下完整的环境信息呢 |
Beta Was this translation helpful? Give feedback.
-
@cuicheng01 然后参照https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/ppstructure/table/README_ch.md#41-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B的方式运行python脚本,并把相关模型文件放到正确的目录。其中 然后这次执行的命令: 没有报错了,代码顺利运行。但是效果比较差。 请问怎么能够提升效果呢,有没有哪些参数可以调整的? |
Beta Was this translation helpful? Give feedback.
-
请问你的预测的时候用的时Linux还是Windows系统 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
您好! 我使用如下命令
python table/predict_table.py
--det_model_dir=inference/ch_ppocr_server_v2.0_det_infer
--rec_model_dir=inference/ch_ppocr_server_v2.0_rec_infer
--table_model_dir=inference/table_structure_tablemaster_infer
--rec_char_dict_path=../ppocr/utils/ppocr_keys_v1.txt
--table_char_dict_path=../ppocr/utils/dict/table_master_structure_dict.txt
--image_dir=../../images/table_images/table.png
--output=../output/table --table_max_len=480
报错
NotFoundError: Operator (logical_and) does not have kernel for data_type[float]:data_layout[ANY_LAYOUT]:place[CUDAPlace(0)]:library_type[PLAIN].
[Hint: Expected kernel_iter != kernels.end(), but received kernel_iter == kernels.end().] (at /paddle/paddle/fluid/framework/operator.cc:1276)
[operator < logical_and > error]
请问如何解决呢。
Beta Was this translation helpful? Give feedback.
All reactions