【问题标题】:codelab tutorial tensorflow errorxxxcodelab 教程 tensorflow errorxxx
【发布时间】:2020-03-06 15:22:12
【问题描述】:

一旦我在 windows 10 张量流版本 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'

谁能帮帮我:(

【问题讨论】:

标签: python tensorflow machine-learning cmd pip


【解决方案1】:

请看这里:tensorflow retrain.py app.run() got unexpected keyword argument 'argv'

我认为您需要更新 tensorflow 的版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-17
    • 1970-01-01
    • 1970-01-01
    • 2018-11-05
    • 2017-04-13
    • 2019-09-06
    • 1970-01-01
    相关资源
    最近更新 更多