无法使用诗人 tensorflow 说明中的 label_image.py

Unable to use label_image.py from the Instructions on the tensorflow for poets

我已经根据网站的说明重新训练了初始模型

https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/?utm_campaign=chrome_series_machinelearning_063016&utm_source=gdev&utm_medium=yt-desc#4

但我无法找出为什么在第 5 步中我无法使用 label_image.py 对图像进行分类。按照第 5 部分中的步骤进行操作后。最后使用

python /tf_files/label_image.py /tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg 在 docker, 我在下图中收到错误消息:

Error message

label_image.py 的复制粘贴似乎有误。 查看该文件,看看它是否真的是纯 python 代码。