protoc

ImportError: cannot import name 'input_reader_pb2'

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 08:49:58
working on win10 64-bit when i trying to train my model by E:\projectx\model-master\models-master>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config this error appear File "train.py", line 49, in from object_detection.builders import dataset_builder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\dataset_builder.py", line 27, in from object_detection.data_decoders import tf_example_decoder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36

“Failed to parse input” from Google protocol buffers protoc command for ``--decode_raw``

心不动则不痛 提交于 2019-12-02 07:36:51
问题 I have a google protobuf file from OpenStreetMap, specifically I have the 1.4MB Liechtenstein country extract from Geofabrik. The protoc command says it "write the raw tag/values to stdout" with the --decode_raw option. However I keep getting this error: $ cat liechtenstein-latest.osm.pbf | protoc --decode_raw Failed to parse input. I have compiled and installed the protobuf library direct from Google, version 2.6.1 which is the current one. This file is valid, various OpenStreetMap tools

“Failed to parse input” from Google protocol buffers protoc command for ``--decode_raw``

假装没事ソ 提交于 2019-12-02 06:06:41
I have a google protobuf file from OpenStreetMap , specifically I have the 1.4MB Liechtenstein country extract from Geofabrik . The protoc command says it "write the raw tag/values to stdout" with the --decode_raw option. However I keep getting this error: $ cat liechtenstein-latest.osm.pbf | protoc --decode_raw Failed to parse input. I have compiled and installed the protobuf library direct from Google, version 2.6.1 which is the current one. This file is valid, various OpenStreetMap tools that read pbf files ( osm2pgsql , osmosis ) can read it fine. What could be wrong? How can I get -

Protogen Vs. Protoc Compiler Options

狂风中的少年 提交于 2019-12-02 00:19:53
I have some .proto files used to compile classes from Java, C++ and C#. For Java and C++ I use the Protoc compiler and for the C# I use Protogen. The scripts for the Java/C++ class creation is @ECHO OFF SET SRC_DIR=%~dp0 REM Make Java and C++ SET JAVA_OUT_DIR=%SRC_DIR%\..\taurus-messages-java\src\main\java if not exist %JAVA_OUT_DIR% ( mkdir %JAVA_OUT_DIR% ) SET CPP_OUT_DIR=%SRC_DIR%\..\taurus-messages-cpp if not exist %CPP_OUT_DIR% ( mkdir %CPP_OUT_DIR% ) protoc -I=%SRC_DIR% --java_out=%JAVA_OUT_DIR% --cpp_out=%CPP_OUT_DIR% %SRC_DIR%taurus-mux.proto protoc -I=%SRC_DIR% --java_out=%JAVA_OUT

Protocol Buffer Error on compile during GOOGLE_PROTOBUF_MIN_PROTOC_VERSION check

折月煮酒 提交于 2019-12-01 03:39:11
I'm currently getting an error which points me to these lines in the header file produced by protoc: #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif But my protoc version matches the one above: protoc --version libprotoc 2.6.1 What am I doing wrong? Originally my protoc version was 3.0.0 then reinstalled it by syncing back to 2.6.1 and doing the steps; make distclean, ./configure , make, make

Protocol Buffer Error on compile during GOOGLE_PROTOBUF_MIN_PROTOC_VERSION check

梦想与她 提交于 2019-11-30 23:52:46
问题 I'm currently getting an error which points me to these lines in the header file produced by protoc: #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif But my protoc version matches the one above: protoc --version libprotoc 2.6.1 What am I doing wrong? Originally my protoc version was 3.0.0 then

How can I use protocol buffers for Python on windows?

时间秒杀一切 提交于 2019-11-30 07:10:47
I have been trying to use protocol buffers in my Python program, but cannot get it to work. I'm running a Windows 8 machine and have tried Python 2.7.6 and Python 3.3. I downloaded the binary protocol buffer compiler for Python and used it to generate myProto_pb2.py from my myProto.proto file, but when I get the following error when I run my Python program: from the "import myProto_pb2" line, I get the following error when using Python 2.7.6 from protocol buffers version 2.5: from google.protobuf import descriptor as _descriptor ImportError: No module named google.protobuf How can I correctly

protoc object_detection/protos/*.proto: No such file or directory

∥☆過路亽.° 提交于 2019-11-30 02:09:56
I am following the example found here . But whenever I enter the command "C:/Program Files/protoc/bin/protoc" object_detection/protos/ .proto --python_out=. I get an error that says object_detection/protos/ .proto: No such file or directory. I can't create a directory called *.proto. So I'm missing some fundamental information on how to do this. Since I can't find anyone else complaining about this issue it must be pretty simple. I am using a windows OS. Solved for Windows, be in ' research ' and have the ' protoc ' in path, then this will work: for /f %i in ('dir /b object_detection\protos\*

How can I use protocol buffers for Python on windows?

浪尽此生 提交于 2019-11-29 09:01:23
问题 I have been trying to use protocol buffers in my Python program, but cannot get it to work. I'm running a Windows 8 machine and have tried Python 2.7.6 and Python 3.3. I downloaded the binary protocol buffer compiler for Python and used it to generate myProto_pb2.py from my myProto.proto file, but when I get the following error when I run my Python program: from the "import myProto_pb2" line, I get the following error when using Python 2.7.6 from protocol buffers version 2.5: from google

protoc object_detection/protos/*.proto: No such file or directory

十年热恋 提交于 2019-11-28 23:05:03
问题 I am following the example found here. But whenever I enter the command "C:/Program Files/protoc/bin/protoc" object_detection/protos/ .proto --python_out=. I get an error that says object_detection/protos/ .proto: No such file or directory. I can't create a directory called *.proto. So I'm missing some fundamental information on how to do this. Since I can't find anyone else complaining about this issue it must be pretty simple. I am using a windows OS. 回答1: Solved for Windows, be in '