readNetFromTensorflow when loading customized model [closed]
Hi
OpenCV 3.4.1 Python 3.6 Tensorflow 1.5.0
I just construct a simple model for mnist.
x = tf.placeholder(tf.float32, [None, 784], name='input')
W = tf.Variable(tf.zeros([784,10]), dtype=tf.float32, name='W')
b = tf.Variable(tf.zeros([10]), dtype=tf.float32, name='b')
y = tf.nn.softmax(tf.matmul(x,W) + b, name='softmax')
And, save graph.pbtxt mode and trained weight ckpt data.
Then, freeze graph and weight to frozen.pb file.
Next, optimize frozen.pb file to frozen_inference_graph.pb
Model txt and binary files in below link. https://drive.google.com/file/d/1v6fo... https://drive.google.com/file/d/1bA7-... https://drive.google.com/file/d/1HC4m...
readNetFromTensorflow always fail no matter how I try. cv::Exception at memory location
Any advise or guidance would be greatly appreciated!
Thanks Hank