How to fix the «cannot import name 'string_int_label_map_pb2'» TensorFlow error?

Step 1

Install protobuf.

Step 2

cd <path to `tensorflow/models`>/research
protoc object_detection/protos/*.proto --python_out=.