ImportError: cannot import name 'input_reader_pb2'

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 08:49:58

Seems that you didnt compile protobuf. For solving it:

  1. Download the latest protoc exe here: https://github.com/google/protobuf/releases (in your case should be win32)
  2. Rename that folder to "protoc"
  3. Put that folder inside models/research
  4. in models/research via console, launch:

    protoc/bin/protoc object_detection/protos/*.proto --python_out=.
    

I dont know exactly if that command will work on windows, but you have to be sure that you are using the protoc compiler that you downloaded (v.3.6) instead of the protoc in your enviroment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!