博客
关于我
object detection错误Message type "object_detection.protos.SsdFeatureExtractor" has no field named "bat
阅读量:797 次
发布时间:2023-02-17

本文共 552 字,大约阅读时间需要 1 分钟。

在使用SSD模型进行训练时,可能会遇到与Protobuf解析相关的错误。以下是解决该问题的详细说明:

  • 错误现象:当使用SSD Mobilenet V2模型时,可能会抛出以下错误:

    google.protobuf.text_format.ParseError: 35:7 : Message type "object_detection.protos.SsdFeatureExtractor" has no field named "batch_norm_trainable"

    这表明模型配置文件中存在一个不支持的字段。

  • 问题根源:在SSD Mobilenet V2模型中,batch_norm_trainable字段已经被移除。这个字段在V1版本中是必须的,但在V2版本中不再需要。

  • 解决方法

    • 打开你的pipeline.config文件。
    • 删除包含batch_norm_trainable: true的部分。
    • 保存修改后的配置文件,重新运行训练任务。
  • 验证

    • 确认删除了错误的字段。
    • 确保其他与批量归一化相关的参数(如batch_norm_scale)已正确配置。
    • 检查模型是否能够正常加载和训练。
  • 通过以上步骤,可以解决 Protobuf 解析错误,确保SSD Mobilenet V2模型顺利训练。

    转载地址:http://dynfk.baihongyu.com/

    你可能感兴趣的文章
    NN&DL4.8 What does this have to do with the brain?
    查看>>
    No 'Access-Control-Allow-Origin' header is present on the requested resource.
    查看>>
    No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
    查看>>
    No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
    查看>>
    No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
    查看>>
    No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
    查看>>
    No module named cv2
    查看>>
    No module named tensorboard.main在安装tensorboardX的时候遇到的问题
    查看>>
    No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
    查看>>
    No new migrations found. Your system is up-to-date.
    查看>>
    No qualifying bean of type XXX found for dependency XXX.
    查看>>
    No resource identifier found for attribute 'srcCompat' in package的解决办法
    查看>>
    No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
    查看>>
    NO.23 ZenTaoPHP目录结构
    查看>>
    NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
    查看>>
    Node JS: < 一> 初识Node JS
    查看>>
    Node-RED中使用JSON数据建立web网站
    查看>>
    Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
    查看>>
    Node-RED中使用Notification元件显示警告讯息框(温度过高提示)
    查看>>
    Node-RED中实现HTML表单提交和获取提交的内容
    查看>>