簡體   English   中英

Windows上的詩人用Tensorflow(重新訓練初始)

[英]Tensorflow for Poets (Retraining Inception) on Windows

當我遵循“如何為新類別 python retrain.py Inception的最后 python retrain.py 的教程時,我正在Windows上運行python retrain.py 我尚未對文件retrain.py進行任何更改。 創建了將近7300個瓶頸文件后,出現以下錯誤

Creating bottleneck at /tmp/bottleneck\daisy\9204730092_a7f2182347.jpg.txt
Creating bottleneck at /tmp/bottleneck\daisy\99306615_739eb94b9e_m.jpg.txt
7300 bottleneck files created.
Traceback (most recent call last):
  File "retrain.py", line 930, in <module>
    tf.app.run()
  File "C:\Users\student\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "retrain.py", line 846, in main
    bottleneck_tensor)
  File "retrain.py", line 755, in add_final_training_ops
    variable_summaries(layer_weights, layer_name + '/weights')
  File "retrain.py", line 711, in variable_summaries
    tf.scalar_summary('mean/' + name, mean)
AttributeError: module 'tensorflow' has no attribute 'scalar_summary'

您必須使用tf.summary.scalar()而不是tf.scalar_summary。

在此處查找所有此類更新的摘要功能的列表

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM