Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Faster-RCNN object detection models from TensorFlow#11255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
teaglin commentedApr 18, 2018
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 |
dkurt commentedApr 18, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@teaglin, please specify whatconfig file did you use and what changes in it did you make? If you can share the model we can solve it faster. Thanks! |
teaglin commentedApr 18, 2018
@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 |
dkurt commentedApr 19, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@teaglin, Thank you! Could you please specify what kind of objects is detected to test an accuracy? |
teaglin commentedApr 19, 2018
@dkurt The model is used for detecting sports balls. |
dkurt commentedApr 19, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@teaglin, Please regenerate a Then you can useobject_detection.py: |
teaglin commentedApr 19, 2018
@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? |
dkurt commentedApr 19, 2018
@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 |
vpisarev commentedMay 31, 2018
👍 |
lbv-h commentedJun 6, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 |
dkurt commentedJun 6, 2018
@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 sourcehttps://github.com/opencv/opencv/tree/3.4. |
Luca3424 commentedJul 17, 2018
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? |

Uh oh!
There was an error while loading.Please reload this page.
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