
tensorflow
cool_策
以梦为马,莫负韶华
寻找小伙伴,一起搞事情
抱团取暖,合作共赢
wx:图像处理进阶之路
展开
-
Keras多标签分类
模型# import the necessary packagesfrom keras.models import Sequentialfrom keras.layers.normalization import BatchNormalizationfrom keras.layers.convolutional import Conv2Dfrom keras.layers.convolu...原创 2020-03-26 17:55:55 · 597 阅读 · 0 评论 -
Tensorflow设置gpu占有率
调整gpu_fraction参数大小(最大设置为1.0)def get_session(gpu_fraction=0.5): num_threads = os.environ.get('OMP_NUM_THREADS') gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=gpu_fraction) ...原创 2020-03-24 10:48:54 · 800 阅读 · 1 评论 -
flask部署keras模型的问题
问题:raise ValueError(“Tensor %s is not an element of this graph.” % obj)ValueError: Tensor Tensor(“dense_3/Sigmoid:0”, shape=(?, 59), dtype=float32) is not an element of this graph.我的解决方案初始化部分加入“se...原创 2019-11-07 18:19:09 · 596 阅读 · 0 评论 -
Window10+coco数据集+PythonAPI调用
1、下载coco数据集 参考博客:http://blog.youkuaiyun.com/happyhorizion/article/details/77894205#coco数据库 2、Win10编辑 Pycocotools 参考博客:http://www.jianshu.com/p/de455d653301 3、创建demo.py源码from pycocotools.coco import COCO原创 2017-11-02 18:22:06 · 7578 阅读 · 3 评论 -
python安装tensorflow出现的问题
问题描述: 先前安装的是tensorflow-gpu(1.1.0) 1.module ‘tensorflow.python.ops.nn’ has no attribute ‘leaky_relu’ 2.module ‘matplotlib’ has no attribute 解决方案 1.tensorflow的版本没有‘leaky_relu’函数 使用国内镜像下载安装,指令 下载k...原创 2018-04-27 09:47:28 · 1723 阅读 · 0 评论 -
Tesorflow深度学习框架
转载 2018-10-12 11:34:02 · 468 阅读 · 0 评论 -
TensorFlow与TensorLayer学习
参考该博客很齐全:https://blog.youkuaiyun.com/edward_zcl/article/details/80565695原创 2018-11-21 18:33:55 · 702 阅读 · 0 评论 -
Tesorflow将训练模型固化
将深度模型固化有两种方案:1、直接训练过程中模型保存成pb格式。2、先将训练模型保存成ckpt,然后转成pb格式第一种直接保存成pb格式,VGG-16 示例程序(根据需求自己复用)from PIL import Imageimport numpy as npimport matplotlib.pyplot as pltimport matplotlib.image as mpimg...原创 2019-01-21 10:47:41 · 658 阅读 · 1 评论