PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

Assertion `(x >= static_cast<T>(0)) && (x <= one)` failed. Input is expected to be within the interval [0, 1], but recieved nan.

Open Jeremy-lf opened this issue 4 years ago • 5 comments

[07/15 22:35:03] ppdet.engine INFO: Epoch: [3] [120/922] learning_rate: 0.000404 angle_loss: 5.099063 phi_cos_loss: 1.231465 phi_sin_loss: 1.642504 occluded_loss: 7.705573 truncated_loss: 6.232909 occluded_acc: 0.610000 truncated_acc: 0.494687 heatmap_loss_mean: 34.394241 yolo_loss: 114.108925 loss: 172.359558 eta: 1 day, 18:09:49 batch_cost: 13.3108 data_cost: 7.6279 ips: 1.2020 images/s











Error: /paddle/paddle/phi/kernels/gpu/bce_loss_kernel.cu:42 Assertion (x >= static_cast<T>(0)) && (x <= one) failed. Input is expected to be within the interval [0, 1], but recieved nan. Error: /paddle/paddle/phi/kernels/gpu/bce_loss_kernel.cu:42 Assertion (x >= static_cast<T>(0)) && (x <= one) failed. Input is expected to be within the interval [0, 1], but recieved nan. Error: /paddle/paddle/phi/kernels/gpu/bce_loss_kernel.cu:42 Assertion (x >= static_cast<T>(0)) && (x <= one) failed. Input is expected to be within the interval [0, 1], but recieved nan. Error: /paddle/paddle/phi/kernels/gpu/bce_loss_kernel.cu:42 Assertion (x >= static_cast<T>(0)) && (x <= one) failed. Input is expected to be within the interval [0, 1], but recieved nan. Error: /paddle/paddle/phi/kernels/gpu/bce_loss_kernel.cu:42 Assertion (x >= static_cast<T>(0)) && (x <= one) failed. Input is expected to be within the interval [0, 1], but recieved nan.

image

paddledetection,训练yolov3框架检测算法,训练了3个epcho后报错,什么问题呢? 如流:lvfeng02

复现环境 Environment

No response

是否愿意提交PR Are you willing to submit a PR?

  • [ ] Yes I'd like to help by submitting a PR!

Jeremy-lf avatar Jul 18 '22 03:07 Jeremy-lf

跑飞了吧, 提供 paddle版本 ppdet版本 以及使用的是什么数据集,

lyuwenyu avatar Jul 18 '22 05:07 lyuwenyu

paddle2.3 ,ppdet2.3,任务是一阶段检测+二阶段属性预测

Jeremy-lf avatar Jul 18 '22 05:07 Jeremy-lf

把LR调小再试一下吧

lyuwenyu avatar Jul 18 '22 06:07 lyuwenyu

paddle2.3 ,ppdet2.3,任务是一阶段检测+二阶段属性预测 请问解决了吗,我同样的问题

lemon9707 avatar Apr 19 '23 02:04 lemon9707

@Jeremy-lf

lemon9707 avatar Apr 19 '23 02:04 lemon9707