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
i tried to run text detection.py based on my own east model, but it failed at
''outs = net.forward(outNames)''
cv2.error: OpenCV(4.1.1) .\opencv-python\opencv\modules\dnn\src\dnn.cpp:525: error: (-2:Unspecified error)
Can't create layer "resnet_v1_50/conv1/BatchNorm/FusedBatchNormV3" of type "FusedBatchNormV3" in function 'cv::dnn::dnn4_v20190621::LayerData::getLayerInstance'
Thanks three thousand! @dkurt
i retried the code in Tensorflow 1.14, and it ran without errors.
Hey @SpringRainLu, what code did you actually retry? Just the samples/dnn/text_detection.py or did you retrain your own east model again?
I am getting similar errors with my cv2 python code. Works well with pre-trained models from the internet but not with my custom model. I was wondering if this was related.
networkOutput = tensorflowNet.forward() error: OpenCV(4.1.1) /Users/travis/build/skvark/opencv-python/opencv/modules/dnn/src/dnn.cpp:525: error: (-2:Unspecified error) Can't create layer "FeatureExtractor/MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/FusedBatchNormV3" of type "FusedBatchNormV3" in function 'getLayerInstance'
Activity
alalek commentedon Nov 24, 2019
What is version of TensorFlow?
SpringRainLu commentedon Nov 24, 2019
tf 1.15.0
dkurt commentedon Nov 25, 2019
@SpringRainLu, please take a look at #15986 (WIP for now, we will add some tests soon).
SpringRainLu commentedon Nov 25, 2019
Thanks three thousand! @dkurt
i retried the code in Tensorflow 1.14, and it ran without errors.
mapavia commentedon May 4, 2020
Hey @SpringRainLu, what code did you actually retry? Just the samples/dnn/text_detection.py or did you retrain your own east model again?
I am getting similar errors with my cv2 python code. Works well with pre-trained models from the internet but not with my custom model. I was wondering if this was related.
networkOutput = tensorflowNet.forward() error: OpenCV(4.1.1) /Users/travis/build/skvark/opencv-python/opencv/modules/dnn/src/dnn.cpp:525: error: (-2:Unspecified error) Can't create layer "FeatureExtractor/MobilenetV1/MobilenetV1/Conv2d_0/BatchNorm/FusedBatchNormV3" of type "FusedBatchNormV3" in function 'getLayerInstance'dkurt commentedon May 5, 2020
@mapavia, Please try newer version of OpenCV
mapavia commentedon May 5, 2020
I'll try that next time. But I got it working by retraining my model using tensorflow 1.14 instead of 1.15. Thanks.