I got this error when I ran the notebook on jupyter.
log_dir = "inception_log"
if not os.path.exists(log_dir):
os.makedirs(log_dir)
#classify_image_graph_def.pd是google訓練好的模型
inception_graph_def_file = os.path.join("inception_model","classify_image_graph_def.pd")
with tf.Session() as sess:
#建一張圖存放google訓練好的模型
with tf.gfile.FastGFile(inception_graph_def_file,'rb') as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
tf.import_graph_def(graph_def,name = "")
#保存圖的結構
print("start")
writer = tf.summary.FileWriter("inception_log",sess.graph)
writer.close()
print("end")
I'm not sure is this error cause I couldn't write a file in my folder. I tried to google this error but didn't find the way to solve this error. Thanks.