You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting a couple errors with the string_int_label_map.pb files included in your project.
First is:
#if 3003002 < 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
Second is: No member named 'Shutdown' in 'object_detection::protos::StringIntLabelMapItemDefaultTypeInternal'
for:
@JieHe96 i did as you said as it is still not working.
Can't you link your .proto file so we can generate the conflicting file again?
ps : after some more reading it appears in the ios code you are checking the version for "3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION"
You also checking the other around, not less than 3.3.0.
So 3.1 is a no-go
I solved this problem by cloning the 1.4.0 tensorflow tag.
Then after doing all the normal TF compile steps, by recompiling the protbuff headers with protoc version 3.4.0.
If you check the version of protobuff common that gets included with the 1.4.0 TF tag its Protobuf 3.4.0.
Then run something like:
./protoc --cpp_out=./ ./string_int_label_map.proto
Make sure to use the protoc binary for 3.4.0 that you downloaded above. Then replace the files in the ex_SSD_Mobilenet_TF folder:
string_int_label_map.pb.cc
string_int_label_map.pb.h
I might make a PR that provides these changes so others don't have to mess around so much.
Activity
JieHe96 commentedon Oct 9, 2017
For the first question, it seems like you installed several protobuf and use the wrong one.
Currently TensorFlow is using the protobuf 3.1.0, so try to remove other versions of protobuf in your computer. The link of how to install the protobuf is here:
https://www.tensorflow.org/versions/r0.12/get_started/os_setup#protobuf_library_related_issues
richard-ash commentedon Oct 10, 2017
Thanks!
JieHe96 commentedon Oct 22, 2017
Try use this commit version of TensorFlow and it should work correctly.
tirrorex commentedon Nov 9, 2017
@JieHe96 i did as you said as it is still not working.
Can't you link your .proto file so we can generate the conflicting file again?
ps : after some more reading it appears in the ios code you are checking the version for "3003002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION"
You also checking the other around, not less than 3.3.0.
So 3.1 is a no-go
anonym24 commentedon Dec 15, 2017
same error, seems it needs 3.3, but on https://www.tensorflow.org/versions/r0.12/get_started/os_setup you will find only 3.1
did someone solve this issue?
zwhinmedia commentedon Dec 19, 2017
same error +1
madhavajay commentedon Jan 12, 2018
I solved this problem by cloning the 1.4.0 tensorflow tag.
Then after doing all the normal TF compile steps, by recompiling the protbuff headers with protoc version 3.4.0.
If you check the version of protobuff common that gets included with the 1.4.0 TF tag its Protobuf 3.4.0.
Get the correct 3.4.0 binary for your system here:
https://github.com/google/protobuf/releases
Get the original .proto definition file here:
https://github.com/tensorflow/models/blob/master/research/object_detection/protos/string_int_label_map.proto
Then run something like:
./protoc --cpp_out=./ ./string_int_label_map.proto
Make sure to use the protoc binary for 3.4.0 that you downloaded above. Then replace the files in the ex_SSD_Mobilenet_TF folder:
string_int_label_map.pb.cc
string_int_label_map.pb.h
I might make a PR that provides these changes so others don't have to mess around so much.
anonym24 commentedon Jan 13, 2018
@madhavajay thanks for telling us, I'll try at work time later,
would be great if you make a PR
madhavajay commentedon Jan 14, 2018
馃槉 @anonym24 I already did:
#24
anonym24 commentedon Jan 30, 2018
@madhavajay do I still need to change something in original tensorflow folder? like this

There are many points and instructions here, but where to start, what is the obligation to carry out
anonym24 commentedon Jan 30, 2018
@madhavajay solved it, big thanks!
didn't need it to change anything in tensorflow 1.4.0 files
I just installed protobuf 1.4.0
downloaded your edited iOS_Tensorflow_ObjectDetection_Example
downloaded tensorflow 1.4.0
and only did this
and it worked!