【发布时间】:2020-02-14 11:35:33
【问题描述】:
当我们想在本地使用 TensorFlow 加载模型时,我们这样做:
path_to _frozen = model_path + '/frozen_inference_graph.pb'
detection_graph = tf.Graph()
with detection_graph.as_default():
od_graph_def = tf.GraphDef()
with tf.io.gfile.GFile(path_to _frozen, 'rb') as fid:
serialized_graph = fid.read()
od_graph_def.ParseFromString(serialized_graph)
tf.import_graph_def(od_graph_def, name='')
我们如何使用谷歌云功能将存储模型加载到谷歌存储桶上?
【问题讨论】:
-
本地加载时,本地路径是什么?类似
/home/user? -
是的,类似的。顺便说一句,我的意思是如果有像“tf.MetaGraphDef”这样的另一个函数,或者我需要使用元或索引检查点。
标签: tensorflow google-cloud-functions google-cloud-storage