argman / EAST

A tensorflow implementation of EAST text detector
GNU General Public License v3.0
3.02k stars 1.05k forks source link

opencv4.0.1 load freeze model error #268

Open opentld opened 5 years ago

opentld commented 5 years ago

Hi friends: I download official "Models trained on ICDAR 2013 (training set) + ICDAR 2015 (training set): BaiduYun http://pan.baidu.com/s/1jHWDrYQ " model and try to freeze it to pb model. I found the output layers must be "model_0/feature_fusion/Conv_7/Sigmoid" and "model_0/feature_fusion/concat_3", and successfully freeze it to pb model. But, when I use opencv4.0.1 dnn to read the net,error occurs: OpenCV: terminate handler is called! The last OpenCV error is: OpenCV(4.0.1) Error: Unspecified error (Input layer not found: resnet_v1_50/conv1/BatchNorm/beta) in cv::dnn::dnn4_v20181221::`anonymous-namespace'::TFImporter::connect, file e:\sourcecodes\opencv\opencv-4.0.1\modules\dnn\src\tensorflow\tf_importer.cpp, line 497

Why this happens? Why openCV can not find the input layer "resnet_v1_50/conv1/BatchNorm/beta" ?

many thanks for your help !

SpringRainLu commented 4 years ago

i have the same prolem , do you have a solutoin@opentld