File "classify_image.py", line 154, in run_inference_on_image
if not tf.gfile.Exists(image):
AttributeError: ‘module‘ object has no attribute ‘gfile‘
I have tried installing using both, from pip as well as source, on virtualserver as well, still I get this error.
我已经尝试安装两个方法了,从pip到source,在virtualserver等等,但是还是得到这个错误。
This gfile stuff was added 6 days ago in this commit -- github.com/tensorflow/tensorflow/commit/… , might be worth filing an issue on github. As a workaround, you can undo the gfile stuff locally back into os.path, it‘s only a few lines – Yaroslav Bulatov
这个gfile的东西是在6天前加上去的,看这个评论,github.com/tensorflow/tensorflow/commit/…,或许值得在github上添加一个issue。作为一种解决方案,你可以本地撤销gfile东西回到os.path。它只是几行代码而已。