PaddleX icon indicating copy to clipboard operation
PaddleX copied to clipboard

PPYOLOTiny 报错 ValueError: (InvalidArgument) The inverse of Fused batch norm variance should be finite. Found nonfinite values! Please check batch_norm_0.w_2

Open monkeycc opened this issue 3 years ago • 0 comments

Checklist:

  1. 查找历史相关issue寻求解答
  2. 翻阅FAQ常见问题汇总和答疑
  3. 确认bug是否在新版本里还未修复
  4. 翻阅PaddleX API文档说明

描述问题


2022-08-23 15:29:51 [INFO]      Model[PPYOLOTiny] loaded.
Traceback (most recent call last):
  File "f:/MM/mm.py", line 7163, in <module>
    deploy_model = pdx.deploy.Predictor("F:/MM/PPYOLOTiny/",use_gpu=True)
  File "D:\Anaconda3\envs\PaddleX38\lib\site-packages\paddlex\deploy.py", line 64, in __init__
    self.predictor = self.create_predictor(
  File "D:\Anaconda3\envs\PaddleX38\lib\site-packages\paddlex\deploy.py", line 138, in create_predictor
    predictor = create_predictor(config)
ValueError: (InvalidArgument) The inverse of Fused batch norm variance should be finite. Found nonfinite values! Please check batch_norm_0.w_2
  [Hint: Expected std::isfinite(variance_array[i]) == true, but received std::isfinite(variance_array[i]):0 != true:1.] (at ..\paddle\fluid\framework\ir\conv_bn_fuse_pass.cc:105)

复现

  1. 您是否已经正常运行我们提供的教程

  2. 您是否在教程的基础上修改代码内容?还请您提供运行的代码

  3. 您使用的数据集是?

  4. 请提供您出现的报错信息及相关log

环境

  1. 请提供您使用的PaddlePaddle和PaddleX的版本号 paddlepaddle-gpu 2.3.1.post116 paddleslim 2.2.1 paddlex 2.1.0
  2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS Windows
  3. 请问您使用的Python版本是? python 3.8
  4. 请问您使用的CUDA/cuDNN的版本号是? cuda11.6 cudnn 8.4

monkeycc avatar Aug 23 '22 07:08 monkeycc