PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

scores = outputs['bbox'][:, 1].numpy() RuntimeError: (PreconditionNotMet) Tensor's dimension is out of bound.Tensor's dimension must be equal or less than the size of its memory.But received Tensor's dimension is d4 memory's size is 0. [Hint: Expected numel() * SizeOfType(type()) <= memory_size(), but received numel() * SizeOfType(type()):4 > memory_size():0.] (at ..\paddle\fluid\framework\tensor.cc:39)

Open 3244we opened this issue 2 years ago • 2 comments

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

scores = outputs['bbox'][:, 1].numpy() RuntimeError: (PreconditionNotMet) Tensor's dimension is out of bound.Tensor's dimension must be equal or less than the size of its memory.But received Tensor's dimension is d4 memory's size is 0. [Hint: Expected numel() * SizeOfType(type()) <= memory_size(), but received numel() * SizeOfType(type()):4 > memory_size():0.] (at ..\paddle\fluid\framework\tensor.cc:39)

在用pp-yolo做目标检测的时候遇到了这个报错,不知道要怎么改动去解决

3244we avatar Jul 27 '22 02:07 3244we

  1. 训练还是预测 2. paddle和ppdet版本 3. 自己的数据还是COCO

lyuwenyu avatar Jul 27 '22 03:07 lyuwenyu

  1. 训练还是预测 2. paddle和ppdet版本 3. 自己的数据还是COCO 训练的时候,在ppdet.metrics.metrics里面报错的 paddle是2.2.1.post101 ppdet是2.1 自己的数据集,大概有600个样本。

3244we avatar Jul 27 '22 03:07 3244we