2017-07-06 144 views
0

我是新來的機器學習和神經網絡的領域。 我正沿着CodeLabs TensorFlow以下爲詩人教程https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/index.html#3
雖然試圖測試圖片反對我再培訓的模式,我收到以下錯誤:TensorFlow詩人tf_iles/retraine_labels.txt找不到

Traceback (most recent call last): 
File "label_image.py", line 15, in <module> 
in tf.gfile.GFile("retrained_labels.txt")] 
File "/usr/local/lib/python2.7/dist- 
packages/tensorflow/python/lib/io/file_io.py", line 164, in next 
retval = self.readline() 
File "/usr/local/lib/python2.7/dist- 
packages/tensorflow/python/lib/io/file_io.py", line 133, in readline 
self._preread_check() 
File "/usr/local/lib/python2.7/dist- 
packages/tensorflow/python/lib/io/file_io.py", line 75, in _preread_check 
compat.as_bytes(self.__name), 1024 * 512, status) 
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 
self.gen.next() 
File "/usr/local/lib/python2.7/dist- 
packages/tensorflow/python/framework/errors_impl.py", line 466, in 
raise_exception_on_not_ok_status 
pywrap_tensorflow.TF_GetCode(status)) 
tensorflow.python.framework.errors_impl.NotFoundError: retrained_labels.txt 

我假設它有事情做與retrained_label即而再培訓模型創建.txt文件
所以我檢查工作目錄和文件retrained_label.txt缺少
有人可以幫我解決這個問題

回答

0

retrained_labels.txt文件壽ld是通過運行retrain.py的步驟創建的。你可以嘗試重新運行這個來看看你是否可以成功創建它,或者如果在這一點上有錯誤?