最后找到为 使用的 cpu 不支持 AXV 运算, 只支持 SSE2 !
故要自行更换 tensorflow 的版本!
因为套件中,是使用 PYTHON 3.6 版本,故只能选用 1.12 版的
同样错误的人,可以来这儿下载测看看:
https://github.com/fo40225/tensorflow-windows-wheel
或者把 python 换成 3.7 版,就可以使用 1.14 的 tensorflow
Tensorflow 运行警告!
C:\Users\win7\anaconda3\envs\yolo\lib\site-packages\tensorflow\python\framework
\dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type
is deprecated; in a future version of numpy, it will be understood as (type, (1
,)) / '(1,)type'.
为 numpy 版本不对! 可以向下降到 1.16 版本! 或修改 dtype.py
np.dtype([(“quint8”, np.uint8,1)]) ==> np.dtype([(“quint8”, np.uint8,(1,))])
参考 https://blog.csdn.net/BigDream123/article/details/99467316
Tensorflow 运行报错!
File "C:\yolo-for-k210-master\yolo\backend\utils\fit.py", line 162, in save_tf
lite
converter = tf.lite.TFLiteConverter.from_keras_model_file("tmp.h5",output_ar
rays=[output_layer])
AttributeError: module 'tensorflow' has no attribute 'lite'
为 1.12 和 1.14 命令不兼容! 要将 fit.py 中的命令,进行修改!
tf.lite.TFLiteConverter ==> tf.contrib.lite.TFLiteConverter or tf.contrib.lite.TocoConverter
https://github.com/tensorflow/tensorflow/issues/24239
https://stackoverflow.com/questions/53680660/attributeerror-module-tensorflow-has-no-attribute-lite-in-keras-model-to-te