I just have a graph.pbtxt file. I want to view the graph in tensorboard. But I am not aware of how to do that. Do I have to write any python script or can I do it from the terminal itself? Kindly help me to know the steps involved.
Select the Graphs dashboard by tapping “Graphs” at the top. You can also optionally use TensorBoard. dev to create a hosted, shareable experiment. By default, TensorBoard displays the op-level graph.
To visualize them: In the MediaPipe visualizer, click on the upload graph button and select the 2 pbtxt files to visualize (main graph and its associated subgraph). There will be 2 additional tabs.
config : path to the . pbtxt file that contains text graph definition in protobuf format. Resulting "Net" object is built by text graph using weights from a binary one that let us make it more flexible.
Open tensorboard and use the "Upload" button on the left to upload the pbtxt file will directly open the graph in tensorboard.
You can save .pb
file from your .pbtxt
with tf.train.write_graph
from google.protobuf import text_format
with open('graph.pbtxt') as f:
text_graph = f.read()
graph_def = text_format.Parse(text_graph, tf.GraphDef())
tf.train.write_graph(graph_def, path, 'graph.pb', as_text=False)
Then you can load it in tf.Session
. Take a look at this gist
https://gist.github.com/jubjamie/2eec49ca1e4f58c5310d72918d991ef6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With