We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model_file = Path(r"D:\workspace\ZhousfLib\model\inference.pdmodel") params_file = Path(r"D:\workspace\ZhousfLib\model\inference.pdiparams") config_file = Path(r"D:\workspace\ZhousfLib\model\inference_cls.yaml") try: with model_file.open("rb") as model_buffer, params_file.open("rb") as params_buffer: # runtime_option read model form memory runtime_option.set_model_buffer(model_buffer.read(), params_buffer.read()) runtime_option.use_gpu(0) runtime_option.use_paddle_backend() # Initialize model without model path and params path model = fd.vision.classification.PaddleClasModel("", "", str(config_file), runtime_option=runtime_option) except Exception as e: print(e)
[INFO] fastdeploy/vision/common/processors/transform.cc(93)::fastdeploy::vision::FuseNormalizeHWC2CHW Normalize and HWC2CHW are fused to NormalizeAndPermute in preprocessing pipeline. [INFO] fastdeploy/vision/common/processors/transform.cc(159)::fastdeploy::vision::FuseNormalizeColorConvert BGR2RGB and NormalizeAndPermute are fused to NormalizeAndPermute with swap_rb=1 进程已结束,退出代码为 -1073741819 (0xC0000005)
看报错是内存非法访问,不知道哪里出了问题,代码参考 #1073 @rainyfly 麻烦帮忙看下,感谢~
The text was updated successfully, but these errors were encountered:
#1073 #1174
Sorry, something went wrong.
rainyfly
No branches or pull requests
环境
问题日志及出现问题的操作流程
直接报错:
看报错是内存非法访问,不知道哪里出了问题,代码参考 #1073
@rainyfly 麻烦帮忙看下,感谢~
The text was updated successfully, but these errors were encountered: