![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
瀑听石
一枚搞人工智能的渣渣95后硕士生
展开
-
c++ opencv 调用python tensorflow
1.vs2019配置opencv3.4.X版本(我是3.4.15),此处配置过程略2.上C++代码#include <opencv2/dnn.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/highgui.hpp>#include <Windows.h>#include <fstream>#include <iostream>#include "highgu原创 2021-09-18 13:59:35 · 338 阅读 · 0 评论 -
Tensorflow2.x .h5文件转换为pb文件
import tensorflow as tffrom tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2def convert_h5to_pb():model = tf.keras.models.load_model("./MODEL.h5",compile=False)model.summary()full_model = tf.function(lambda Inp原创 2021-09-18 13:41:51 · 1040 阅读 · 0 评论 -
25.tensorflow ERROR:grpc._server:Exception calling application: Variable conv1/weights already exist
问题:ERROR:grpc._server:Exception calling application: Variable conv1/weights already exist解决方法:因为服务器第二次运行又要加载权重,然后第一次运行已经有了,需要清除运算图将此程序放在程序的开头tf.reset_default_graph()...原创 2019-10-25 14:19:25 · 1165 阅读 · 1 评论 -
22.tensorflow ckpt转pb
# @File : ckpt_pb.py# @Author: Wang Zhimin# @Date : 2019/10/23import tensorflow as tffrom tensorflow.python.framework import graph_utildef freeze_graph(input_checkpoint, output_graph): ''...原创 2019-10-23 09:40:00 · 136 阅读 · 0 评论 -
21.Intel二代神经棒使用教程
一、环境配置1、下载OPENVINO—TOOLKIThttps: // software.intel.com / en - us / openvino - toolkit / choose - download2、安装OPENVINO按照默认的路径安装,全部勾选,直接下一步到完成3、安装CMake,并添加到环境变量4、安装PYthon,并添加到环境变量5、设置环境1) cdC:\...原创 2019-10-22 08:13:31 · 1974 阅读 · 0 评论 -
9.python tensorflow禁用GPU
import osos.environ["CUDA_VISIBLE_DEVICES"]="-1" import tensorflow as tf原创 2019-10-14 09:58:43 · 743 阅读 · 0 评论 -
4.python tensorflow 查看每一个节点
# @File : node.py# @Author: Wang Zhimin# @Date : 2019/8/28from tensorflow.python import pywrap_tensorflowimport osfrom tensorflow.python import pywrap_tensorflowimport oscheckpoint_path=os.pa...原创 2019-10-11 14:34:57 · 205 阅读 · 0 评论