numpy 版本改换

今天为了将mxnet框架转为tensorflow 框架,参考了下面帖子来操作一下

pip install mmdnn

装好后,页面有提示,就先忽略掉了

mxnet-cu100 1.4.1 has requirement numpy<1.15.0,>=1.8.2, but you'll have numpy 1.16.4 which is incompatible.
mxnet-cu90 1.4.1 has requirement numpy<1.15.0,>=1.8.2, but you'll have numpy 1.16.4 which is incompatible.

后来再执行

python -m mmdnn.conversion._script.convertToIR -f mxnet -n model-symbol.json -w model-0000.params -d resnet50 --inputShape 3,112,112 

时遇到报错;

raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

网上查找原因

https://blog.csdn.net/scrence/article/details/89645854,

认为是numpy版本过高的原因,于是查看自己电脑的numpy版本

pip show numpy

发现versino :1.16.4

把这个降到需要的版本:

pip install -U numpy==1.12.0,降低numpy的版本

 

 

你可能感兴趣的:(numpy 版本改换)