cascade rcnn训练报错
若叶映夏 发布于2021-07 浏览:1869 回复:1
0
收藏

Traceback (most recent call last):
File "tools/train.py", line 140, in
main()
File "tools/train.py", line 136, in main
run(FLAGS, cfg)
File "tools/train.py", line 111, in run
trainer.train(FLAGS.eval)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/engine/trainer.py", line 350, in train
self._eval_with_loader(self._eval_loader)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/engine/trainer.py", line 366, in _eval_with_loader
outs = self.model(data)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 898, in __call__
outputs = self.forward(*inputs, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/architectures/meta_arch.py", line 29, in forward
out = self.get_pred()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/architectures/cascade_rcnn.py", line 136, in get_pred
bbox_pred, bbox_num, mask_pred = self._forward()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/architectures/cascade_rcnn.py", line 115, in _forward
im_shape, scale_factor)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/ppdet/modeling/post_process.py", line 120, in get_pred
scaled_bbox = pred_bbox / scale_factor_list
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/math_op_patch.py", line 250, in __impl__
return math_op(self, other_var, 'axis', axis)
RuntimeError: (PreconditionNotMet) The Tensor's element number must be equal or greater than zero. The Tensor's shape is [-1, 4] now
[Hint: Expected numel() >= 0, but received numel():-4 < 0:0.] (at /paddle/paddle/fluid/framework/tensor.cc:59)
[operator < elementwise_div > error]

收藏
点赞
0
个赞
共1条回复 最后由kn怪盗基德回复于2021-07
#2kn怪盗基德回复于2021-07

是什么环境啊,使用的那个套件啊,看着像是数据没有处理好,没有读取到或者数据不正确啊。如果方便的话今天把环境和套件等其他信息提供一下

0
TOP
切换版块