machine-learning - 咖啡 |解析错误...字符串文字不能跨行边界

标签 machine-learning neural-network protocol-buffers deep-learning caffe

我想微调bvlc_reference_caffenet我的数据集上的模型。
我执行了以下步骤:

  1. 我为我拥有的新数据集创建了 lmdb 文件。

  2. 我下载了预训练的 bvlc_reference_caffenet.caffemodel

  3. 我更改了最后一层,即“fc8”,全连接层:
    获取train_val.prototxt并将最后一层“fc8”更改为“fc8_tune”

  4. 我将 num_output 更改为尝试预测的正确输出类数量(即 2)。

  5. 我根据我的数据更改了 solver.prototxt

  6. 我运行

    $TOOLS/caffe train --solver=solver.prototxt --weights=bvlc_reference_caffenet.caffemodel
    

但我收到以下错误

[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 363:19: String literals cannot cross line boundaries.
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 363:18: Message type "caffe.LayerParameter" has no field named "fc8_tune".
F0531 17:13:33.284981  3670 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /caffe-master/models/bvlc_reference_caffenet/train_val.prototxt

谁能帮我解决这个错误?

最佳答案

您忘记在 prototxt 文件中关闭引号 (")。
根据错误信息

Error parsing text-format caffe.NetParameter: 363:19:

您应该查看第 363 行。

关于machine-learning - 咖啡 |解析错误...字符串文字不能跨行边界,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37545143/

相关文章:

protocol-buffers - .proto文件的字段可以从零开始吗?

java - 使用 SBT 构建工具在 Java 中编译 Protobufs 时出现编译错误

matlab - 使用 SVM 算法在 matlab 中进行拇指识别

python-3.x - 在神经网络中使用一个热编码向量馈送标签

java - 如何将 H2o 嵌入到 Java 应用程序中?

neural-network - 深度神经网络真的需要全连接层吗?

python - 拟合多项式的 Keras 模型

java - 我应该将 IDL 文件和生成的代码放在 Maven 项目中的哪里?

python - 使用适用于 Python 2.7 的 MacPorts 安装 Shogun 工具箱

machine-learning - Kohonen SOM map : Normalizing the input with unknown range