Python Forum
od_graph_def.ParseFromString(serialized_graph)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
od_graph_def.ParseFromString(serialized_graph)
#1
I am using this guy's code: https://stackoverflow.com/questions/4567...to-console
I get this error:

Error:
---> 28 od_graph_def.ParseFromString(serialized_graph) DecodeError: Error parsing message
I have been searching google and stackoverflow for solutions, nothing works. I installed tf 2.0.0 ---> nothing, tf 1.15.1 ---> nothing, tf 2.5.0 ---> nothing.

I tried this (source: https://stackoverflow.com/questions/5761...o-attribut) :

tf.compat.v1.GraphDef()   # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile()   # -> instead of tf.gfile.GFile()
--> nothing.

I tried this :

with tf.io.gfile.GFile(path, 'r') as fid:
--> nothing...

Countless candidate solutions I have tried, absolutely nothing! I work on google colab! What is wrong with this line??
Reply


Messages In This Thread
od_graph_def.ParseFromString(serialized_graph) - by hobbyist - Aug-03-2022, 05:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020