我使用Anaconda 安装的 TensorFlow,首先使用activate TensorFlow 激活环境
由于是Windows上弄,所以我选择直接从GitHub上将模型代码库下载下来
第一次运行时,遇上了ValueError: features should be a dictionary of `Tensor`s. Given type: <class 'tensorflow.python.data 这个问题
解决方法是更新TensorFlow,我将TensorFlow从1.4更至1.8
pip install --upgrade tensorflow
再次运行,可得结果
附:
查看TensorFlow版本的方法:
Python
import TensorFlow as tf
tf.__version__