ValueError: model_config not of type model_pb2.DetectionModel.
hi, im exporting data training with this command python export_inference_graph.py --input_type image_tensor --pipeline_config_path training/faster_rcnn_inception_v2_pets.config --trained_checkpoint_prefix training/model.ckpt-4489 --output_directory inference_graph
but i have this error:
File "C:\TensorFlow\models\research\object_detection\builders\model_builder.py", line 113, in build raise ValueError('model_config not of type model_pb2.DetectionModel.') ValueError: model_config not of type model_pb2.DetectionModel.
any idea ? thanks you
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
hi thanks for answering,
before compile I had to copy slim content folder in C:\ProgramData\Anaconda3\envs\tensorflow\Lib\site-packages\object_detection-0.1-py3.6.egg because no identify nets module.
i'm using:
Windows 10,
tensorboard 1.11.0 py36he025d50_0
tensorflow 1.11.0 eigen_py36h346fd36_0
tensorflow-base 1.11.0 eigen_py36h45df0d8_0
Cython 0.29
My PC Processor: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (8 CPUs), ~3.6GHz Memory: 16384MB RAM NVIDIA GeForce GTX 1050 Ti
I'm doing this tutorial https://www.youtube.com/watch?v=Rgpfk6eYxJA https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10
My tensorflow directory C:\TensorFlow\models\research\object_detection
So i´m trying Export Inference Graph with this command in object-detection folder:
python export_inference_graph.py --input_type image_tensor --pipeline_config_path training/faster_rcnn_inception_v2_pets.config --trained_checkpoint_prefix training/model.ckpt-4489 --output_directory inference_graph.
Greetings, I remain attentive
This is the complete error:
(tensorflow1) C:\TensorFlow\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
WARNING:tensorflow:From C:\ProgramData\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\platform\app.py:124: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
W1031 16:28:00.182125 12248 tf_logging.py:118] From C:\ProgramData\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\platform\app.py:124: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
Traceback (most recent call last):
File "train.py", line 184, in
This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!
@k-w-w How can you close the issue as many of them has the same issue even iam also facing the same issue from 2 days
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\model_builder.py", line 118, in build raise ValueError('model_config not of type model_pb2.DetectionModel.') ValueError: model_config not of type model_pb2.DetectionModel.
In my computer,I did these and fixed this problem in model_builder.py don't use "from protos import model_pb2" use "from object_detection.protos import model_pb2" instead