"ValueError: numpy.ndarray size changed " while trying Intel lpot in tensorflow model

"ValueError: numpy.ndarray size changed " while trying Intel lpot in tensorflow model

在 tensorflow 模型中试用英特尔低精度优化工具时,出现一些值错误。

请在下面找到我试过的命令:

# The cmd of running ssd_resnet50_v1
bash run_tuning.sh --config=ssd_resnet50_v1.yaml --input_model=/tmp/ssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03/frozen_inference_graph.pb --output_model=./tensorflow-ssd_resnet50_v1-tune.pb

运行,我收到以下错误:

import pycocotools._mask as _mask File "pycocotools/_mask.pyx", line 1, in init pycocotools._mask ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

提供 git 中心 link 我关注了: https://github.com/intel/neural-compressor/tree/master/examples/tensorflow/object_detection

请尝试升级numpy版本。命令如下:

pip install --upgrade numpy

我遇到了同样的问题,我升级了 numpy,解决了这个问题。

谢谢