错误 运行 张量流 test_streaming_accuracy.cc
Error running tensorflow test_streaming_accuracy.cc
到运行test_streaming_accuracy.cc
,我运行以下命令:
bazel run tensorflow/examples/speech_commands:test_streaming_accuracy --graph=/home/sweta/AudioRecognition/speech_commands_train/my_frozen_graph.pb --labels=/home/sweta/AudioRecognition/speech_commands_train/conv_labels.txt --wav=/home/sweta/AudioRecognition/speech_dataset/streaming_test_labels.wav --ground_truth=/home/sweta/AudioRecognition/speech_dataset/streaming_test_labels.txt --verbose
执行此操作后,出现以下错误:
ERROR: Unrecognized option: --graph=/home/sweta/AudioRecognition/speech_commands_train/my_frozen_graph.pb
有人知道怎么做吗?
为了将参数传递给 bazel run
下的二进制文件,您需要在参数之前包含一个额外的 --
,否则 Bazel 会将这些参数解析为自己的参数。
例如bazel run //my/binary:target --verbose_failures -- --arg_for_binary_target=42
到运行test_streaming_accuracy.cc
,我运行以下命令:
bazel run tensorflow/examples/speech_commands:test_streaming_accuracy --graph=/home/sweta/AudioRecognition/speech_commands_train/my_frozen_graph.pb --labels=/home/sweta/AudioRecognition/speech_commands_train/conv_labels.txt --wav=/home/sweta/AudioRecognition/speech_dataset/streaming_test_labels.wav --ground_truth=/home/sweta/AudioRecognition/speech_dataset/streaming_test_labels.txt --verbose
执行此操作后,出现以下错误:
ERROR: Unrecognized option: --graph=/home/sweta/AudioRecognition/speech_commands_train/my_frozen_graph.pb
有人知道怎么做吗?
为了将参数传递给 bazel run
下的二进制文件,您需要在参数之前包含一个额外的 --
,否则 Bazel 会将这些参数解析为自己的参数。
例如bazel run //my/binary:target --verbose_failures -- --arg_for_binary_target=42