Faster-RCNN object detection models from TensorFlow#11255
Faster-RCNN object detection models from TensorFlow#11255opencv-pushbot merged 1 commit intoopencv:3.4from
Conversation
|
Hi, I tried out this build and it works with the coco model in the TensorFlow model zoo. But it does not work with a custom trained model. I get this error. Any ideas? Error: Unspecified error (Const input blob for weights not found) in getConstBlob, file /Volumes/HD3/opencv/modules/dnn/src/tensorflow/tf_importer.cpp, line 464 |
|
@teaglin, please specify what config file did you use and what changes in it did you make? If you can share the model we can solve it faster. Thanks! |
|
@dkurt I used faster_rcnn_inception_v2_pets.config as a starting point. The only change I made was to the class count. I only have 1 class. The model can be downloaded here. Let me know if you need anything else. https://www.dropbox.com/s/d5oh7lp8iutjdtd/frozen_inference_graph.pb?dl=0 |
|
@teaglin, Thank you! Could you please specify what kind of objects is detected to test an accuracy? |
a08effc to
a4790c0
Compare
|
@dkurt The model is used for detecting sports balls. |
|
@teaglin, Please regenerate a Then you can use object_detection.py: |
|
@dkurt Awesome, I really appreciate the help. I will try this out. On a side note do any of the other configs of rcnn work? I tried the coco resnet50 and resnet101 from tensor flow model zoo. They loaded, but I got really low confidence values. Are there different mean and scale values that have to be used? |
|
@teaglin, Thank you!
Definitely yes, you may check it at README (see PR's files). All the ResNet-based Faster-RCNN networks work with input images with subtracted mean values |
|
👍 |
|
Hi, I created graph.pbtxt with tf_text_graph_faster_rcnn.py from frozen_inference_graph.pb, ran I thought that I need to manually update the file |
|
@UserLiubov, this patch has been merged a week ago. I don't think that opencv installed from pip is up to date. Try to build it from source https://github.com/opencv/opencv/tree/3.4. |
|
Hi, I'm trying to load a custom trained TensorFlow faster_rcnn_inception_v2 model with faster_rcnn_inception_v2_pets.config as a starting point.
It seems like it's crashing while loading the model and config in the readNetFromTensorflow function. Does anyone of you guys know this problem? |

This pullrequest changes
Script to create a config file for Faster-RCNN networks from TensorFlow.
resolves #10393
related:
http://answers.opencv.org/question/187943/opencv-python-34-error-in-loading-tensorflow-object-detection-model/
http://answers.opencv.org/question/188747/how-to-use-readnetfromtensorflow-with-resnet50-network/
Merge with extra: opencv/opencv_extra#455