You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does opencv support faster_rcnn_inception_resnet_v2_atrous_oid? #14634
cv2.error: OpenCV(4.1.0-dev) G:\Lib\opencv\modules\dnn\src\tensorflow\tf_importer.cpp:544: error: (-2:Unspecified error) Input layer not found: FirstStageBoxPredictor/ClassPredictor/BiasAdd in function 'cv::dnn::dnn4_v20190430::`anonymous-namespace'::TFImporter::connect'
Steps to reproduce
tf_text_graph_faster_rcnn.py --input frozen_inference_graph.pb --config pipeline.config --output frozen.pbtxt
Number of classes: 2854
Scales: [0.25, 0.5, 1.0, 2.0]
Aspect ratios: [0.5, 1.0, 2.0]
Width stride: 16.000000
Height stride: 16.000000
Features stride: 16.000000
then
cv.dnn.readNet('frozen_inference_graph.pb','frozen.pbtxt')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(4.1.0-dev) G:\Lib\opencv\modules\dnn\src\tensorflow\tf_importer.cpp:544: error: (-2:Unspecified error) Input layer not found: FirstStageBoxPredictor/ClassPredictor/BiasAdd in function 'cv::dnn::dnn4_v20190430::`anonymous-namespace'::TFImporter::connect'
cv2.error: OpenCV(4.1.0) ../modules/dnn/src/tensorflow/tf_importer.cpp:497: error: (-2:Unspecified error) Input layer not found: FirstStageBoxPredictor/ClassPredictor/BiasAdd in function 'connect'
Activity
alex4men commentedon Jun 6, 2019
I have very similar problem:
opencv: 4.1.0 (from conda-forge channel)
tensorflow: 1.13.1
python: 3.7.3
model: faster_rcnn_inception_resnet_v2_atrous_oid_v4_2018_12_12
Detailed description
exception reading model :
Steps to reproduce
Export pbtxt from the model:
Add description to models.yaml:
then launch object_detection.py:
Link to the frozen_inference_graph.pb, frozen_inference_graph.pbtxt and oid_v4_label_map.txt files: here
dkurt commentedon Dec 31, 2019
Hi!
According to #16113 (see the answer at https://stackoverflow.com/a/59541189/6548453),
faster_rcnn_inception_resnet_v2_atrous_oid_2018_01_28is supported. Going to tryfaster_rcnn_inception_resnet_v2_atrous_oid_v4_2018_12_12.dkurt commentedon Dec 31, 2019
Thanks for this catch!
Please try this patch #16270 considering a comment #13237 (comment) to modify
pipeline.config:height_stride: 8width_stride: 8height_stride: 16
width_stride: 16
Output from OpenCV for

faster_rcnn_inception_resnet_v2_atrous_oid_v4_2018_12_12: