You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/root/PaddleX/paddlex/inference/pipelines/layout_parsing/pipeline_v2.py", line 567, in predict
overall_ocr_res["rec_labels"] = ["text"] * len(overall_ocr_res["rec_texts"])
File "/root/PaddleX/paddlex/inference/pipelines/layout_parsing/utils.py", line 85, in get_sub_regions_ocr_res
overall_text_boxes = overall_ocr_res["rec_boxes"]
File "/root/PaddleX/paddlex/inference/pipelines/layout_parsing/pipeline_v2.py", line 567, in predict
overall_ocr_res["rec_labels"] = ["text"] * len(overall_ocr_res["rec_texts"])
File "/root/PaddleX/paddlex/inference/pipelines/layout_parsing/utils.py", line 85, in get_sub_regions_ocr_res
overall_text_boxes = overall_ocr_res["rec_boxes"]
Checklist:
描述问题
使用PP-StructureV3产线时,只需要版面区域检测(PP-DocLayout)结果,遂请求时指定
useGeneralOcr: false
。此时发现执行会失败。请求参数如下:check了下源码,当
useGeneralOcr: false
时,这里设置了overall_ocr_res = {}
:https://github.com/PaddlePaddle/PaddleX/blob/release/3.0-rc/paddlex/inference/pipelines/layout_parsing/pipeline_v2.py#L564但是后续相关逻辑还是会去获取ocr的结果,例如:
复现
yes
no
unrelated to the current issue
环境
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0rc0-paddlepaddle3.0.0rc0-gpu-cuda11.8-cudnn8.6-trt8.5
linux
3.10
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/paddlex:paddlex3.0.0rc0-paddlepaddle3.0.0rc0-gpu-cuda11.8-cudnn8.6-trt8.5
The text was updated successfully, but these errors were encountered: