-
大小: 1KB文件类型: .py金币: 2下载: 1 次发布日期: 2021-06-09
- 语言: Python
- 标签: tensorflow pb inference
资源简介
tensorflow训练网络模型 ,生成用于模型预测的pb模型文件,输入图片,进行前向预测
代码片段和文件信息
# -*- coding: utf-8 -*-
“““
Created on Wed Oct 24 17:54:28 2018
@author: DELL
“““
import tensorflow as tf
import numpy as np
lookup=dict()
with open(“dict.txt“ “r“) as f:
for line in f:
split=line.split()
lookup[int(split[0])]=split[1]
with tf.Session() as sess:
with open(‘classify_image_graph_def.pb‘ ‘rb‘) as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
# print(graph_def)
# file=open(‘Output_nod.txt‘‘w‘)
# file.write(str(graph_def));
softmax_tensor = tf.get_defau
- 上一篇:基于arcgis10的pythonaddin设计
- 下一篇:寻路.py
相关资源
- tensorflow制作自己的灰度图像数据集并
- anaconda下安装tensorflow(注:不同版本
- 北京大学曹健老师-人工智能实践:
- Deep Learning With Python - Jason Brownlee
- Python-自然场景文本检测PSENet的一个
- Python-高效准确的EAST文本检测器的一个
- Python-TensorFlow弱监督图像分割
- Python-基于tensorflow实现的用textcnn方法
- Python-subpixel利用Tensorflow的一个子像素
- 【官方文档】TensorFlow Python API docume
- Python PyGame and Raspberry Pi Game Developmen
-
tensorflow画风迁移代码 st
yle transfer - h5py-2.8.0-cp37-cp37m-linux_aarch64.whl
- 简单粗暴 TensorFlow
- [PDF] Reinforcement Learning With Open AI Tens
- tensorflow目标检测代码
- 基于Python的手写字体识别系统
- 基于Tensorflow的人脸识别源码
- python TensorFlow 官方文档中文版
- Python-在TensorFlow中实现实现图像卷积网
- tensorflow-1.9.0-cp37-cp37m-win_amd64.whl
- Faster-RCNN-TensorFlow-Python3.5-master
- 聊天机器人tensorflow
- caffe模型转化为tensorflow模型
- Python-一个非常简单的BiLSTMCRF模型用于
- Python-Tensorflow仿AlphaGo框架实现的AI围棋
- Mask R-CNN源码(TensorFlow版本)
- 基于python3 tensorflow DBN_and_RNN的实现
- tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
- Hands-On Machine Learning with Scikit-Learn an
评论
共有 条评论