1 Star 0 Fork 1

guibao233 / fira

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fira_view_network.py 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
guibao233 提交于 2022-09-22 15:02 . 此部分为fira核心代码
# -*- coding: utf-8 -*-
__author__ = 'Gui'
'''
@Time : 2022/6/5 18:21
@Author : Gui
@File : fira_view_network.py
@Software: PyCharm
'''
# import tensorflow as tf
#
#
# g = tf.Graph()
# with g.as_default() as g:
# tf.train.import_meta_graph('-82.meta')
#
# with tf.Session(graph=g) as sess:
# file_writer = tf.summary.FileWriter(logdir='-82', graph=g)
# ckpt_path = '-82'
#
# saver = tf.train.import_meta_graph(ckpt_path + '.meta', clear_devices=True)
# graph = tf.get_default_graph()
# with tf.Session(graph=graph) as sess:
# sess.run(tf.global_variables_initializer())
# saver.restore(sess, ckpt_path)
import tensorflow as tf
from tensorflow.python.platform import gfile
graph = tf.get_default_graph()
graphdef = graph.as_graph_def()
_ = tf.train.import_meta_graph('-82.meta')
summary = tf.summary.FileWriter('summary的路径', graph)
Python
1
https://gitee.com/guibao2/fira.git
git@gitee.com:guibao2/fira.git
guibao2
fira
fira
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891