Reputation: 31
I've installed tensorflow 2.x for using object detection on windows 10 and follow this tutorial
but this error after run
python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
showing.
even run new command
python model_main_tf2.py --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
Upvotes: 1
Views: 6051
Reputation: 355
1. Check folder in directory ...\object_detection\protos and count how many _pb2.py and .protos (don't count init.py and pychance), if they equal then congratulation this forum not solve that problem, but if not go to no.2
2. Type this on console
protoc --python_out=. .\object_detection\protos\ YYYY .proto
what is YYYY..? it's the missing .py in \object_detection\protos... to know it check protos and _pb2.py if 1 of protos don't have match, change the YYYY* with that name ( example : I don't have _pb2.py match at anchor_generator.proto, so I type in console protoc --python_out=. .\object_detection\protos\anchor_generator.proto
, and so all)
Upvotes: 0
Reputation: 1
!protoc object_detection/protos/*.proto --python_out=.
Your pwd should be 'Tensorflow/models/research
Upvotes: 0
Reputation: 217
It is because there is no fpn_b2.py
file in the object_detection/protos
folder. The protoc command given in the tutorial missed this.
You can run the following from research
folder in anaconda prompt
protoc --python_out=. .\object_detection\protos\fpn.proto
Upvotes: 1