我想为诗人样本运行Tensorflow。我通过如下:tensorflow retrain.py app.run()得到意想不到的关键字参数'argv'
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_labels.txt --image_dir tf_files/flower_photos
我得到的错误
File "examples/image_retraining/retrain.py", line 1013, in <module> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) TypeError: run() got an unexpected keyword argument 'argv'
当我检查app.py它显示的argv作为参数源。据t。 版本我正在运行0.11.0rc0
任何想法?
你可以提供关于构建过程的更多细节吗?我看到[这个问题](http://stackoverflow.com/questions/40357548/inception-v3-guide-on-tensorflow-broken-for-c-and-python)被推荐为TF GitHub站点的错误报告。 [这篇文章](http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker)遇到了Docker的问题。 – Prune
谢谢。我用conda安装成virtualenv。我只是尝试使用命令“conda install -c conda-forge tensorflow”重新安装。它安装了版本0.11.0rc2 – JerryKur