当我在Windows 10上运行TensorFlow 1.7.1版本的以下代码时
python -m scripts.retrain \ --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
我得到了以下错误
line 1326, in <module> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)AttributeError: module 'tensorflow' has no attribute 'app'
有人能帮帮我吗?:(
回答:
请看这里: tensorflow retrain.py app.run() got unexpected keyword argument ‘argv’
我认为你需要更新TensorFlow的版本。