learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

error when testing on my trained model

Open qianyunw opened this issue 5 years ago • 1 comments

Hello, I want to test on my own trained model. I changed the string of textGraph and modelWeights and recompile it:

String textGraph = "./mask_rcnn_x/mask_rcnn_x.pbtxt"; String modelWeights = "./mask_rcnn_x/frozen_inference_graph.pb";]

here comes errors:

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.0) /home/wangqianyun/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:535: error: (-2:Unspecified error) Input [FirstStageFeatureExtractor/resnet_v1_50/resnet_v1_50/block3/unit_1/bottleneck_v1/conv2/Conv2D/paddings] for node [FirstStageFeatureExtractor/resnet_v1_50/resnet_v1_50/block3/unit_1/bottleneck_v1/conv2/SpaceToBatchND] not found in function 'getConstBlob'

Aborted (core dumped)

Any help would be highly appreciated!

qianyunw avatar May 08 '19 09:05 qianyunw

Hello, I want to test on my own trained model. I changed the string of textGraph and modelWeights and recompile it:

String textGraph = "./mask_rcnn_x/mask_rcnn_x.pbtxt"; String modelWeights = "./mask_rcnn_x/frozen_inference_graph.pb";]

here comes errors:

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.0.0) /home/wangqianyun/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:535: error: (-2:Unspecified error) Input [FirstStageFeatureExtractor/resnet_v1_50/resnet_v1_50/block3/unit_1/bottleneck_v1/conv2/Conv2D/paddings] for node [FirstStageFeatureExtractor/resnet_v1_50/resnet_v1_50/block3/unit_1/bottleneck_v1/conv2/SpaceToBatchND] not found in function 'getConstBlob'

Aborted (core dumped)

Any help would be highly appreciated!

Excuse me, Have you solved this problem? How can get the pbtxt files? Looking for ward to your reply.

Byronnar avatar Jan 26 '21 07:01 Byronnar