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
主要报错信息:InvalidArgumentError: Failed to parse program_desc from binary string.
[Hint: Expected desc_.ParseFromString(binary_str) == true, but received desc_.ParseFromString(binary_str):0 != true:1.] (at /paddle/paddle/fluid/framework/program_desc.cc:103)
Activity
TinyQi commentedon Nov 23, 2023
TinyQi commentedon Nov 23, 2023
主要报错信息:InvalidArgumentError: Failed to parse program_desc from binary string.
[Hint: Expected desc_.ParseFromString(binary_str) == true, but received desc_.ParseFromString(binary_str):0 != true:1.] (at /paddle/paddle/fluid/framework/program_desc.cc:103)
LokeZhou commentedon Nov 24, 2023
提供一下最小复现代码
TinyQi commentedon Nov 24, 2023
就在这个引擎初始化的函数里面报错的:
`
bool PaddleInferenceEngine::Init(const InferenceConfig& infer_config)
{
const PaddleEngineConfig& engine_config = *(infer_config.paddle_config);
paddle_infer::Config config;
return true;
}
`
zhoutianzi666 commentedon Nov 27, 2023
使用CPU推理还是GPU推理报错的呢?
TinyQi commentedon Nov 27, 2023
你好,我CPU和GPU都试过,根本还没到推理,就初始化预测引擎的时候就报错了,报错就发生在我上面发的这个初始化函数里
zhoutianzi666 commentedon Nov 27, 2023
TinyQi commentedon Nov 27, 2023
刚刚试过了,不行,还是一样的错误。我导出的这个模型中,好像是需要重新编译C++扩展,会不会是模型中有一些模块无法被paddle_inference解析呢?
zhoutianzi666 commentedon Nov 27, 2023
试试python能推理吗?
TinyQi commentedon Nov 27, 2023
python是可以使用https://github.com/PaddlePaddle/PaddleMIX/blob/develop/deploy/groundingdino/predict.py这个脚本进行推理的,现在就是C++下不行
zhoutianzi666 commentedon Nov 27, 2023
C++的话,应该要编译自定义算子呢
TinyQi commentedon Nov 27, 2023
就是说要把新加的算子,编译到paddle_inference.so中,才能实现推理是不?如果是的话,请问有相关的指导文档嘛?
LokeZhou commentedon Nov 28, 2023
可以试试去掉deformable_detr_ops这个算子,排除这个自定义算子带来的影响。具体:
1.如果环境里面安装了deformable_detr_ops,可以先pip uninstall 删掉;
2.去除后,重新导出,试试python能不能正常跑;
3.如果python正常,再试试c++
TinyQi commentedon Dec 1, 2023
hello,我试过了,还是不行。请问您那边有在C++推理成功推理过不?
TinyQi commentedon Dec 6, 2023
请问,你们内部有成功过的例子不?还是说正在兼容当中啊
LokeZhou commentedon Dec 6, 2023
这个模型暂没做过c++推理,可以参考https://github.com/PaddlePaddle/Paddle-Inference-Demo/tree/master 里面的其他模型demo;若报错,可在这里面提issue https://github.com/PaddlePaddle/Paddle-Inference-Demo/issues?q=is%3Aopen+is%3Aissue
[wip] datacopilot `analysis`, `filter` and `visualize` (#1060)