How to generate a .pbtxt file using a tensor flow model .pb file for dnn module?
Hello, I have a tensorflow model (.pb file). I want to import it using dnn module in OpenCV. "cv2.dnn.readNetFromTensorflow" function requires 2 parameters , .pb file, and .pbtxt file. Please tell me how to generate .pbtxt file in this case?
Thank you
read this wiki
Thank you for your reply. The wiki tell that I should use "python tf_text_graph_faster_rcnn.py --input /path/to/model.pb --config /path/to/example.config --output /path/to/graph.pbtxt" For this command, I have the model.pb file and I have copied the tf_text_graph_faster_rcnn.py file. There is a list of config files, can I use any one of them?
sorry, but your question is far too broad (and can't be answered "as is")
Hello Berak, Yes, one of my friends trained the model with his data. I am not able to understand the first point. How can I check if .pbtxt file is required for my .pb file?