How to generate .pbtxt file from a .pb file for dnn module in opencv?

Viewed 4583

I have a custom tensorflow model .pb file. I want to import that in OpenCV using the dnn module. dnn module function requires 2 parameters: .pb file and .pbtxt file? How can I generate .pbtxt file from the .pb file?

cvNet = cv2.dnn.readNetFromTensorflow('FrozenMaster.pb', 'graph.pbtxt')

How to get this graph.pbtxt file?

1 Answers
Related