Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • models
  • Issue
  • #3523

M
models
  • 项目概览

PaddlePaddle / models
大约 2 年 前同步成功

通知 232
Star 6828
Fork 2962
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 602
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 255
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
M
models
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 602
    • Issue 602
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 255
    • 合并请求 255
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 10月 12, 2019 by saxon_zh@saxon_zhGuest

rcnn 通过load_inference_model 加载模型 报错 Tensor holds no memory

Created by: linghaolu

rcnn 模型,通过 save_inference_model 保存后,通过fluid.io.load_inference_model 加载模型 预测发生错误。 Traceback (most recent call last): File "infer.py", line 185, in infer2() File "infer.py", line 71, in infer2 return_numpy=False) File "/home/work/anaconda3/lib/python3.6/site-packages/paddle/fluid/executor.py", line 650, in run use_program_cache=use_program_cache) File "/home/work/anaconda3/lib/python3.6/site-packages/paddle/fluid/executor.py", line 748, in run exe.run(program.desc, scope, 0, True, True, fetch_var_name) paddle.fluid.core_avx.EnforceNotMet: Invoke operator generate_proposals error. Python Callstacks: File "/home/work/anaconda3/lib/python3.6/site-packages/paddle/fluid/framework.py", line 1748, in append_op attrs=kwargs.get("attrs", None)) File "/home/work/anaconda3/lib/python3.6/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op return self.main_program.current_block().append_op(*args, **kwargs) File "/home/work/anaconda3/lib/python3.6/site-packages/paddle/fluid/layers/detection.py", line 2497, in generate_proposals 'RpnRoiProbs': rpn_roi_probs}) File "/home/ssd1/caohaitao/rcnn/models/model_builder.py", line 234, in rpn_heads eta=eta) File "/home/ssd1/caohaitao/rcnn/models/model_builder.py", line 41, in build_model self.rpn_heads(body_conv) File "export.py", line 24, in export model.build_model(image_shape) File "export.py", line 46, in export() C++ Callstacks: holder should not be null Tensor holds no memory. Call Tensor::mutable_data first. at [/paddle/paddle/fluid/framework/tensor.cc:23] PaddlePaddle Call Stacks: 0 0x7fc3bac1ff88p void paddle::platform::EnforceNotMet::Initstd::string(std::string, char const*, int) + 360 1 0x7fc3bac202d7p paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const*, int) + 87 2 0x7fc3bcd23c29p paddle::framework::Tensor::check_memory_size() const + 185 3 0x7fc3bcd24e2cp paddle::framework::Tensor::Slice(long, long) const + 44 4 0x7fc3bc64cd7ap paddle::operators::GenerateProposalsKernel::Compute(paddle::framework::ExecutionContext const&) const + 2682 5 0x7fc3bc64d423p std::Function_handler<void (paddle::framework::ExecutionContext const&), paddle::framework::OpKernelRegistrarFunctor<paddle::platform::CPUPlace, false, 0ul, paddle::operators::GenerateProposalsKernel, pa$dle::operators::GenerateProposalsKernel >::operator()(char const*, char const*, int) const::{lambda(paddle::framework::ExecutionContext const&)#1 (closed)}>::M_invoke(std::Any_data const&, paddle::framework::ExecutionContext const&) + 35 6 0x7fc3bcc93f87p paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::$oid, boost::detail::variant::void, boost::detail::variant::void, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detai$::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, $oost::detail::variant::void_> const&, paddle::framework::RuntimeContext*) const + 375 7 0x7fc3bcc94361p paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::$oid_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detai$::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, $oost::detail::variant::void_> const&) const + 529 8 0x7fc3bcc9195cp paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void_, boo$t::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant$:void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::det$il::variant::void_> const&) + 332 9 0x7fc3bada9bfep paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 382 10 0x7fc3badacc9fp paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool, std::vector<std::string, std::allocatorstd::string > const&, bool) + 143 11 0x7fc3bac110edp 12 0x7fc3bac52426p 13 0x7fc3f279a364p _PyCFunction_FastCallDict + 340 14 0x7fc3f282d00ep 15 0x7fc3f284e62ap _PyEval_EvalFrameDefault + 778 16 0x7fc3f2825f24p 17 0x7fc3f2826dc1p 18 0x7fc3f282cf95p 19 0x7fc3f284f3e7p _PyEval_EvalFrameDefault + 4295 20 0x7fc3f2825f24p 21 0x7fc3f2826dc1p 22 0x7fc3f282cf95p 23 0x7fc3f284f3e7p _PyEval_EvalFrameDefault + 4295 24 0x7fc3f282628ep 25 0x7fc3f2826dc1p 26 0x7fc3f282cf95p 27 0x7fc3f284e62ap _PyEval_EvalFrameDefault + 778 28 0x7fc3f28278d9p PyEval_EvalCodeEx + 809 29 0x7fc3f282867cp PyEval_EvalCode + 28 30 0x7fc3f28a2ce4p 31 0x7fc3f28a30e1p PyRun_FileExFlags + 161 32 0x7fc3f28a32e4p PyRun_SimpleFileExFlags + 452 33 0x7fc3f28a6dafp Py_Main + 1535 34 0x7fc3f276d8bep main + 238 35 0x7fc3f1ebe7c5p __libc_start_main + 245 36 0x7fc3f28550dap

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/models#3523
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7