PaddleClas icon indicating copy to clipboard operation
PaddleClas copied to clipboard

我在使用PULC含文字图像方向分类模型,PPLCNet_x1_0

Open God-song opened this issue 1 year ago • 1 comments

欢迎您使用PaddleClas并反馈相关问题,非常感谢您对PaddleClas的贡献! 提出issue时,辛苦您提供以下信息,方便我们快速定位问题并及时有效地解决您的问题:

  1. PaddleClas版本以及PaddlePaddle版本:请您提供您使用的版本号或分支信息,如PaddleClas release/2.2和PaddlePaddle 2.1.0
  2. 涉及的其他产品使用的版本号:如您在使用PaddleClas的同时还在使用其他产品,如PaddleServing、PaddleInference等,请您提供其版本号
  3. 训练环境信息:paddle2.5.1 a. 具体操作系统,如Linux/Windows/MacOS:Linux b. Python版本号,如Python3.6/7/8:python3.9 c. CUDA/cuDNN版本, 如CUDA10.2/cuDNN 7.6.5等,cuda11.6
  4. 完整的代码(相比于repo中代码,有改动的地方)、详细的错误信息及相关log

按照训练代码,运行满屏报警告 I0810 09:46:41.147565 3689318 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.

God-song avatar Aug 10 '23 02:08 God-song

已经修复(#2905),可以pull下最新代码试试。

TingquanGao avatar Aug 10 '23 09:08 TingquanGao