tensorflow - 尝试在 tensorflow 中训练 mobilenet 时出现 ERROR : Config value cuda is not defined in any . rc 文件

标签 tensorflow deep-learning tf-slim

我正在尝试运行 MobileNet_v1ImageNet为此,我正在使用 official Tensorflow Model repository并遵循他们的指南。
但是,当我实际尝试为 MobileNet_v1 进行培训时首先启动:

models/research/slim$ bazel build -c opt --config=cuda mobilenet_v1_{eval,train}

我有 :
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=146
ERROR: Config value cuda is not defined in any .rc file

之前的所有步骤都成功了,除了这一步之外,一切似乎都很好。
我正在使用 :
Ubuntu 16.04  
TF version: v1.7.0 (and 1.10.1) 
Cuda v9.0  
cuDNN v7.0 (and 7.1.3)  
bazel release 0.16.1

最佳答案

根据bazel releases page ,

--[no]allow_undefined_configs no longer exists, passing undefined configs is an error.



从 0.16.0 及以上版本开始。

现在使用旧版本的 bazel 应该可以解决您的问题。

关于tensorflow - 尝试在 tensorflow 中训练 mobilenet 时出现 ERROR : Config value cuda is not defined in any . rc 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52041661/

相关文章:

python - Keras Tensorfolow 的 BatchNormalization 层中的属性 'trainable' 和 'training' 有什么区别?

machine-learning - 对一维标记数据使用深度学习是否合理?

python - 如何将向量中的数值和分类值组合为 LSTM 的输入?

tensorflow - 在 slim.stack 中交错 slim.dropout 和 slim.complete_connected ?

tensorflow - 如何在 TensorFlow-Slim 中使用正则化?

python - 为什么这个 TensorFlow 实现不如 Matlab 的 NN 成功?

python - 将 Keras 中 VGG19 的部分层与 TimeDistributed 层一起使用

python - 在 Tensorflow 中恢复保存的神经网络

tensorflow - 如何为 Tensorflow Hub 模块的特定输入获取所有层的激活?

python - 如何使用现有模型的值初始化 slim.conv2d() 中的权重