PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.65k stars 2.87k forks source link

如何忽略训练过程的警告? #8697

Open liang-stu opened 11 months ago

liang-stu commented 11 months ago

问题确认 Search before asking

请提出你的问题 Please ask your question

训练工程有大量这种警告: I1102 20:19:19.745545 3199 eager_method.cc:140] Warning:: 0D Tensor cannot be used as 'Tensor.numpy()[0]' . In order to avoid this problem, 0D Tensor will be changed to 1D numpy currently, but it's not correct and will be removed in release 2.6. For Tensor contain only one element, Please modify 'Tensor.numpy()[0]' to 'float(Tensor)' as soon as possible, otherwise 'Tensor.numpy()[0]' will raise error in release 2.6. 如何配置忽略掉这种警告?

Wei-JL commented 10 months ago

同问,我使用的是PPASR,而且使用https://github.com/PaddlePaddle/PaddleClas/pull/2891/files 中的方法无效

zhiboniu commented 7 months ago

可以尝试设置glog_v等级,比如export GLOG_v=5