def start(self, restore=False):
self._sess = tf.Session()
self._init = tf.global_variables_initializer()
self._saver = tf.train.Saver()
self._summary = tf.summary.merge_all()
self._summary_writer = tf.summary.FileWriter(self.config.model_save_path, graph=self._sess.graph)
self._summary_writer.flush()
self._sess.run(self._init)
if restore:
checkpoint = tf.train.get_checkpoint_state(self.config.model_save_path)
if checkpoint and checkpoint.model_checkpoint_path:
tf.train.restore(self._sess, checkpoint.model_checkpoint_path)
self._started = True
aggressive_multi_head_UNET_2d.py 文件源码
python
阅读 33
收藏 0
点赞 0
评论 0
评论列表
文章目录