learnopencv
learnopencv copied to clipboard
error when testing on my trained model
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!
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.