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
tf_text_graph_faster_rcnn.py - Assertion error #13237
Comments
@engineer1982, please attach |
@dkurt , the .pb file has 216MB. Here goes the google drive link: https://drive.google.com/open?id=1MBeqFKd3jE9codu23cQJpHeahWHXVtiF |
@engineer1982, the problem is that OpenCV doesn't support any of _atrous network with dilated convolutions from TensorFlow Object Detection API for now. |
@engineer1982, Hi! For faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28 model we need to replace
to
However I don't actually know if this is a typo in |
Thanks Dimitry! And where do I change it? |
@engineer1982, in the config file:
|
Thank you! gonna try it and update here. |
System information (version)
Detailed description
I used Tensorflow Object Detection to train a "faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28" in my custom dataset. After trained, it detected well the new classes (just 3). I exported the new trained model to a folder, which contains the files "frozen_inference_graph.pb" and "pipeline.config"
Then, I used "tf_text_graph_mask_rcnn.py" in the following command:
python tf_text_graph_faster_rcnn.py --input faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28_step19391/frozen_inference_graph.pb --config faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28_step19391/pipeline.config --output faster_rcnn_inception_resnet_v2_atrous_coco_2018_01_28_step19391/graph.pbtxt
Here follows the output. Seem to run well, but got an error:
Number of classes: 3
Scales: [0.25, 0.5, 1.0, 2.0]
Aspect ratios: [0.5, 1.0, 2.0]
Width stride: 8.000000
Height stride: 8.000000
Features stride: 8.000000
2018-11-21 11:27:27.621794: I tensorflow/tools/graph_transforms/transform_graph.cc:318] Applying sort_by_execution_order
Traceback (most recent call last):
File "tf_text_graph_faster_rcnn.py", line 241, in
createFasterRCNNGraph(args.input, args.config, args.output)
File "tf_text_graph_faster_rcnn.py", line 59, in createFasterRCNNGraph
assert(graph_def.node[0].op == 'Placeholder')
AssertionError
Any ideas about what happened here?
Thank you guys.
The text was updated successfully, but these errors were encountered: