首页 PaddleHub 帖子详情
使DiouNMS出现数组维度错误
收藏
快速回复
PaddleHub 问答预训练模型 1007 0
使DiouNMS出现数组维度错误
收藏
快速回复
PaddleHub 问答预训练模型 1007 0

在PaddleDetection的YOLOv3中使用MultiClassDiouNMS出现以下错误:

ValueError: all the input arrays must have same number of dimensions

At:
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/numpy/core/shape_base.py(340): hstack
/home/aistudio/work/PaddleDetection/ppdet/modeling/ops.py(737): _diou_nms
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/nn.py(14192): __call__
F0818 12:10:41.363613 8453 exception_holder.h:37] std::exception caught, ValueError: all the input arrays must have same number of dimensions

ops.py(737)   dets_j = np.hstack((scores_j[:, np.newaxis], rois_j)).astype(
                    np.float32, copy=False)

请问该如何解决?

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户