V851se[求助] NPU使用问题2
-
这一步失败了,不明白为什么....
命令:pegasus quantize --model yolov3.json --model-data yolov3.data --batch-size 2 --device CPU --with-input-meta yolov3_inputmeta.yml --rebuild --model-quantize yolov3.quantize --quantizer asymmetric_affine --qtype uint8
结果:
.............. D Process convolution_64_147 ... D Acuity output shape(convolution): (2 76 76 18) D Tensor @convolution_64_147:out0 type: float32 D Process output_65_148_acuity_mark_perm_152 ... D Acuity output shape(permute): (2 18 76 76) D Tensor @output_65_148_acuity_mark_perm_152:out0 type: float32 D Process output_65_148 ... D Acuity output shape(output): (2 18 76 76) D Tensor @output_65_148:out0 type: float32 I Build prune_16 complete. D *********** Setup database (1) *********** D Setup dataset "TEXT": D Lids: ['input_0'] D Layouts: ['nchw'] D Shapes: [[2, 3, 608, 608]] D Data types: ['float32'] D Sparse tensors: [] D Tensor names(H5FS only): [] W:tensorflow:AutoGraph could not transform <acuitylib.core.execution.BackendFunction object at 0x7f8c8c056d90> and will run it as-is. Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: Unable to locate the source code of <function BackendFunction.__call__ at 0x7f8c8cec69d0>. Note that functions defined in certain environments, like the interactive Python shell do not expose their source code. If that is the case, you should to define them in a .py source file. If you are certain the code is graph-compatible, wrap the call using @tf.autograph.do_not_convert. Original error: could not get source code To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert I Running 1 iterations D 0(100.00%) D Calibrating ... Traceback (most recent call last): File "pegasus.py", line 131, in <module> File "pegasus.py", line 108, in main File "acuitylib/app/medusa/commands.py", line 212, in execute File "acuitylib/vsi_nn.py", line 589, in quantize File "acuitylib/app/medusa/quantization.py", line 151, in run File "acuitylib/app/medusa/quantization.py", line 58, in _run_quantization File "acuitylib/quantization/quantize_manager.py", line 516, in calculate_params File "acuitylib/quantization/quantize_manager.py", line 272, in _cal_quantize_param_all File "acuitylib/quantization/types.py", line 200, in calibrate File "acuitylib/quantization/quantizers/asymmetric_quantizer.py", line 102, in convert_from_minmax File "acuitylib/quantization/quantizers/asymmetric_quantizer.py", line 161, in compute_from_minmax File "acuitylib/quantization/utils.py", line 230, in iscorrect_scalar_minmax_value ValueError: NAN is detected in minmax (nan,nan) [4296] Failed to execute script 'pegasus' due to unhandled exception!
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号