【发布时间】:2016-11-09 18:15:48
【问题描述】:
我正在尝试运行 Tensorflow for Poets 示例。我通过了以下内容:
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.version 我正在运行 0.11.0rc0
有什么想法吗?
【问题讨论】:
-
您能否详细说明构建是如何完成的?我看到this problem 被推荐为 TF GitHub 站点的错误报告。 This posting 解决了 Docker 的问题。
-
谢谢。我用 conda 安装到 virtualenv 中。我刚刚尝试使用命令“conda install -c conda-forge tensorflow”重新安装。它安装了版本 0.11.0rc2
标签: python tensorflow