How can I convert keras model (.h5) into tensorflow (.pb) model to use in opencv DNN module?
I want to convert keras model into tensorflow to use in opencv DNN module. I already converted into .pb file, but when I am going to use opencv DNN module, it gives the following error:
error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\dnn\src\tensorflow\tf_importer.cpp:497: error: (-2:Unspecified error) Input layer not found: ROI_5/split/value in function 'cv::dnn::dnn4_v20190122::`anonymous-namespace'::TFImporter::connect'
How can I solve it, is there any suggestion please?
please show your model code, and the conversion to pb
please update opencv version : last version is 4.1.2