Skip to content

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

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 3月 16, 2020 by saxon_zh@saxon_zhGuest

python ppdet/modeling/tests/test_architectures.py报错

Created by: Suyn

快速安装后,运行python ppdet/modeling/tests/test_architectures.py,下边是运行结果 EE....EE....

======================================================================
ERROR: test_test (__main__.TestCascadeRCNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "ppdet/modeling/tests/test_architectures.py", line 50, in test_test
    test_fetches = model.eval(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 286, in eval
    return self.build(feed_vars, 'test')
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 105, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 1880, in __init__
    self.desc.infer_shape(self.block.desc)
paddle.fluid.core_avx.EnforceNotMet: 

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0   std::string paddle::platform::GetTraceBackString<char const*>(char const*&&, char const*, int)
1   paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
2   paddle::operators::GetBroadcastDimsArrays(paddle::framework::DDim const&, paddle::framework::DDim const&, int*, int*, int*, int, int)
3   paddle::operators::ElementwiseOp::InferShape(paddle::framework::InferShapeContext*) const
4   paddle::framework::OpDesc::InferShape(paddle::framework::BlockDesc const&) const

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 105, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 286, in eval
    return self.build(feed_vars, 'test')
  File "ppdet/modeling/tests/test_architectures.py", line 50, in test_test
    test_fetches = model.eval(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "ppdet/modeling/tests/test_architectures.py", line 79, in <module>
    unittest.main()

----------------------
Error Message Summary:
----------------------
Error: ShapeError: broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [-1, 256, 100, 167] and the shape of Y = [-1, 256, 100, 168]. Received [167] in X is not equal to [168] in Y at (/paddle/paddle/fluid/operators/elementwise/elementwise_op_function.h:145)
  [operator < elementwise_add > error]

======================================================================
ERROR: test_train (__main__.TestCascadeRCNN)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "ppdet/modeling/tests/test_architectures.py", line 43, in test_train
    train_fetches = model.train(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 281, in train
    return self.build(feed_vars, 'train')
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 105, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 1880, in __init__
    self.desc.infer_shape(self.block.desc)
paddle.fluid.core_avx.EnforceNotMet: 

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0   std::string paddle::platform::GetTraceBackString<char const*>(char const*&&, char const*, int)
1   paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
2   paddle::operators::GetBroadcastDimsArrays(paddle::framework::DDim const&, paddle::framework::DDim const&, int*, int*, int*, int, int)
3   paddle::operators::ElementwiseOp::InferShape(paddle::framework::InferShapeContext*) const
4   paddle::framework::OpDesc::InferShape(paddle::framework::BlockDesc const&) const

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 105, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/cascade_rcnn.py", line 281, in train
    return self.build(feed_vars, 'train')
  File "ppdet/modeling/tests/test_architectures.py", line 43, in test_train
    train_fetches = model.train(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "ppdet/modeling/tests/test_architectures.py", line 79, in <module>
    unittest.main()

----------------------
Error Message Summary:
----------------------
Error: ShapeError: broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [-1, 256, 100, 167] and the shape of Y = [-1, 256, 100, 168]. Received [167] in X is not equal to [168] in Y at (/paddle/paddle/fluid/operators/elementwise/elementwise_op_function.h:145)
  [operator < elementwise_add > error]

======================================================================
ERROR: test_test (__main__.TestRetinaNet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "ppdet/modeling/tests/test_architectures.py", line 50, in test_test
    test_fetches = model.eval(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 89, in eval
    return self.build(feed_vars, 'test')
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 71, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 1880, in __init__
    self.desc.infer_shape(self.block.desc)
paddle.fluid.core_avx.EnforceNotMet: 

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0   std::string paddle::platform::GetTraceBackString<char const*>(char const*&&, char const*, int)
1   paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
2   paddle::operators::GetBroadcastDimsArrays(paddle::framework::DDim const&, paddle::framework::DDim const&, int*, int*, int*, int, int)
3   paddle::operators::ElementwiseOp::InferShape(paddle::framework::InferShapeContext*) const
4   paddle::framework::OpDesc::InferShape(paddle::framework::BlockDesc const&) const

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 71, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 89, in eval
    return self.build(feed_vars, 'test')
  File "ppdet/modeling/tests/test_architectures.py", line 50, in test_test
    test_fetches = model.eval(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "ppdet/modeling/tests/test_architectures.py", line 79, in <module>
    unittest.main()

----------------------
Error Message Summary:
----------------------
Error: ShapeError: broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [-1, 256, 100, 167] and the shape of Y = [-1, 256, 100, 168]. Received [167] in X is not equal to [168] in Y at (/paddle/paddle/fluid/operators/elementwise/elementwise_op_function.h:145)
  [operator < elementwise_add > error]

======================================================================
ERROR: test_train (__main__.TestRetinaNet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "ppdet/modeling/tests/test_architectures.py", line 43, in test_train
    train_fetches = model.train(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 86, in train
    return self.build(feed_vars, 'train')
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 71, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 1880, in __init__
    self.desc.infer_shape(self.block.desc)
paddle.fluid.core_avx.EnforceNotMet: 

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
0   std::string paddle::platform::GetTraceBackString<char const*>(char const*&&, char const*, int)
1   paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
2   paddle::operators::GetBroadcastDimsArrays(paddle::framework::DDim const&, paddle::framework::DDim const&, int*, int*, int*, int, int)
3   paddle::operators::ElementwiseOp::InferShape(paddle::framework::InferShapeContext*) const
4   paddle::framework::OpDesc::InferShape(paddle::framework::BlockDesc const&) const

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/framework.py", line 2525, in append_op
    attrs=kwargs.get("attrs", None))
  File "/home/gta/.local/virtualenvs/pd_1/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 243, in __impl__
    attrs={'axis': axis})
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 93, in _add_topdown_lateral
    return lateral + topdown
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/backbones/fpn.py", line 144, in get_output
    top_output)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 71, in build
    body_feats, spatial_scale = self.fpn.get_output(body_feats)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/architectures/retinanet.py", line 86, in train
    return self.build(feed_vars, 'train')
  File "ppdet/modeling/tests/test_architectures.py", line 43, in test_train
    train_fetches = model.train(feed_vars)
  File "/home/gta/MaskDetection/objdetection/models/PaddleCV/PaddleDetection/ppdet/modeling/tests/decorator_helper.py", line 29, in __fn__
    fn(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "ppdet/modeling/tests/test_architectures.py", line 79, in <module>
    unittest.main()

----------------------
Error Message Summary:
----------------------
Error: ShapeError: broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [-1, 256, 100, 167] and the shape of Y = [-1, 256, 100, 168]. Received [167] in X is not equal to [168] in Y at (/paddle/paddle/fluid/operators/elementwise/elementwise_op_function.h:145)
  [operator < elementwise_add > error]

----------------------------------------------------------------------
Ran 12 tests in 3.053s

FAILED (errors=4)

测试都没通过,,,,什么问题???

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/models#4434
渝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