gpt4 book ai didi

android - 错误 :tensorflow:Couldn't understand architecture name ''

转载 作者:太空狗 更新时间:2023-10-29 22:04:00 25 4
gpt4 key购买 nike

我正在按照 google code lab 的说明进行操作

当我运行以下命令时出现了一些错误。

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

错误是

ERROR:tensorflow:Couldn't understand architecture name ''
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/nutron/Documents/android-codelab-projects/google-codelab-tensorflow-for-poets-2/scripts/retrain.py", line 1326, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/Users/nutron/tensorflow/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/Users/nutron/Documents/android-codelab-projects/google-codelab-tensorflow-for-poets-2/scripts/retrain.py", line 976, in main
model_info = create_model_info(FLAGS.architecture)
File "/Users/nutron/Documents/android-codelab-projects/google-codelab-tensorflow-for-poets-2/scripts/retrain.py", line 923, in create_model_info
raise ValueError('Unknown architecture', architecture)
ValueError: ('Unknown architecture', '')

我做错了什么或者我应该怎么做?

谢谢

最佳答案

显然,错误发生是因为未设置ARCHITECTURE。您可能错过了文档中的“配置您的 MobileNet”步骤。请运行以下命令:

IMAGE_SIZE=224
ARCHITECTURE="mobilenet_0.50_${IMAGE_SIZE}"

python -m scripts.retrain ... 之前。

关于android - 错误 :tensorflow:Couldn't understand architecture name '' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46875546/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com