tensorflow retrain.py app.run() 得到了意外的关键字参数“argv" [英] tensorflow retrain.py app.run() got unexpected keyword argument 'argv'
问题描述
我正在尝试为 Poets 示例运行 Tensorflow.我通过以下:
I am trying to run the Tensorflow for Poets sample. I pass the following:
python examples/image_retraining/retrain.py --bottlenext_dir=tf_files/bottlenecks --how_many_training_steps 500 --model_dir=tf_files/inception --output_graph=tf_files/retrained_graph.pb --output_labels=tf_files/retrained--image_dir tf_files/flower_photos
我收到错误
文件examples/image_retraining/retrain.py",第1013行,在<module>tf.app.run(main=main, argv=[sys.argv[0]] + 未解析)类型错误:run() 得到了一个意外的关键字参数 'argv'
当我检查 app.py 的来源时,它显示 argv 作为参数.根据 t.version 我正在运行 0.11.0rc0
When I check the source of app.py it shows argv as an argument. According to t.version I am running 0.11.0rc0
有什么想法吗?
推荐答案
我之前也遇到过同样的问题.从其他分支下载示例修复了它.
I had the same problem earlier. Downloading the examples from a different branch fixed it.
git clone -b r0.11 https://github.com/tensorflow/tensorflow.git
这篇关于tensorflow retrain.py app.run() 得到了意外的关键字参数“argv"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!