-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
问题描述 / Problem Description
问题一:直接使用 rapid-layout时:
使用pp_doc_layoutv3,pp_doc_layoutv2时,报错
Required inputs (['image', 'scale_factor']) are missing from input feed (['im_shape']).
问题二:基于剥离的代码跑时:
https://gist.github.com/SWHL/c9455e8947f4abdfbbd8439c0bb83410
post_op = LayoutAnalysisProcess()
当mask不为空时,scale_size的初始化定义是?未传入此处会报错

运行环境 / Runtime Environment
rapid-layout 1.2.0
复现代码 / Reproduction Code
# model_path = "model/RapidLayout/onnx/pp_doc_layout/pp_doc_layoutv3.onnx"
model_path = "model/RapidLayout/onnx/pp_doc_layout/pp_doc_layoutv2.onnx"
cfg = RapidLayoutInput(
model_dir_or_path=model_path,
engine_type=EngineType.ONNXRUNTIME,
engine_cfg={"use_cuda": False, "cuda_ep_cfg": {"device_id": 0}},
)
layout_engine = RapidLayout(cfg=cfg)
img_path = "images/b.png"
results = layout_engine()可能解决方案 / Possible solutions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels