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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Converted .pb model by using OpenCV's DNN Module #16332
Comments
Is not there any solution? @dkurt |
For now OpenCV does not support Matterport's Mask R-CNN so this issue is labeled as "feature" because requires deep investigation. |
Thank you for your interest @dkurt. |
@dkurt Is there any solution yet to the matterport maskrcnn model in opencv dnn? Will appreciate any help in this regard. Thanks |
@parthasgouda, no progress for now - the task requires to do research how Matterpor's Mask R-CNN matches existing TensorFlow implementation path. |
Hello @parthasgouda . I am using Tensorflow Object Detection API to construct custom Mask R-CNN model. It works just as well as MatterPort. I can even say that it is better than MatterPort in some cases. |
I performed the test with the mask_rcnn_inception_v2_coco_2018_01_28 model from TensorFlow's object detection API. The model provided by Tensorflow worked fine, however when I try to load a trained model with custom data I face several read errors, is there any procedure to perform the step by step inference of a frozen_inference_graph.pb with custom data? |
Hello, i have generated a .h5 model by using https://github.com/matterport/Mask_RCNN code. Then, i have converted the .h5 model to .pb by using https://github.com/bendangnuksung/mrcnn_serving_ready code.
After that, to generate .pbtxt file, i am trying to use
https://github.com/opencv/opencv/blob/master/samples/dnn/tf_text_graph_mask_rcnn.py code. I am getting following error:
I am getting same error, even if i create sorted_graph by using following code:
After i have tried all of these, i have tested with OpenCV's dnn module the generated .pb file with a previosly working .pbtxt file i am getting following error:
graph.pbtxt is working .pbtxt file,
mask_frozen_graph.pb is converted from mask_rcnn_signal_0040.h5 file,
NucleusConfig.txt is configuration file that is used for training MatterPort's code,
pipeline__.config is trying to use for generate .pbtxt with tf_text_graph_mask_rcnn.py,
at the atteched Drive link: https://drive.google.com/open?id=1kNDP09h8ykHWcYSIs_g-1f3-khfXD544
I am waiting for your help. I want to run MatterPort's model with OpenCV dnn module. I do not want to use Tensorflow OD API, because I'm not sure to get as successful as the matterport's model and also I am not sure how should i create training folder structure.
The text was updated successfully, but these errors were encountered: