错误:张量流:图像目录''未找到

时间:2018-04-19 01:29:09

标签: python tensorflow

我正在使用Windows 10从here尝试Tensorflow for Poets。当我运行此代码时,我遇到了麻烦:

python retrain.py 
\--bottleneck_dir=tf_files/bottlenecks 
\--how_many_training_steps=500 
\--model_dir=tf_files/models/ 
\--summaries_dir=tf_files/training_summaries/%ARCHITECTURE% 
\--output_graph=tf_files/retrained_graph.pb 
\--output_labels=tf_files/retrained_labels.txt 
\--architecture=%ARCHITECTURE% 
\--image_dir=tf_files/flower_photos

这是我得到的错误

FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
ERROR:tensorflow:Image directory '' not found.
Traceback (most recent call last):
 File "retrain.py", line 1326, in <module>
  tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
 File "\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 126, in run
   _sys.exit(main(argv))
 File "retrain.py", line 989, in main
    class_count = len(image_lists.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

我该如何解决?我已经尝试过升级和降级Anaconda,Tensorflow和Python。

0 个答案:

没有答案