10类RGB图片:airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck 图片尺寸32x32,50000张训练图片,10000张测试图片 项目源码:https://github.com/tensorflow/model ...
分类:
其他好文 时间:
2019-01-16 19:20:33
阅读次数:
192
图与会话 图与会话 图 tf.Graph TensorFlow计算,表示为数据流图。一个图包含一组表示 tf.Operation计算单位的对象和tf.Tensor表示操作之间流动的数据单元的对象。默认Graph值始终注册,并可通过调用访问 tf.get_default_graph。 a = tf.c ...
分类:
其他好文 时间:
2019-01-16 11:59:21
阅读次数:
226
一、构建自己的数据集 1、格式必须为jpg、jpeg或png。 2、在models/research/object_detection文件夹下创建images文件夹,在images文件夹下创建train和val两个文件夹,分别存放训练集图片和测试集图片。 3、下载labelImg目标检测标注工具 ( ...
分类:
系统相关 时间:
2019-01-15 21:06:25
阅读次数:
284
问题: https://www.programcreek.com/python/example/90420/tensorflow.map_fn https://stackoverflow.com/questions/34987509/tensorflow-max-of-a-tensor-along- ...
分类:
其他好文 时间:
2019-01-14 23:07:21
阅读次数:
212
最近一直在做多标签分类任务,学习了一种层次注意力模型,基本结构如下: 简单说,就是两层attention机制,一层基于词,一层基于句。 首先是词层面: 输入采用word2vec形成基本语料向量后,采用双向GRU抽特征: 一句话中的词对于当前分类的重要性不同,采用attention机制实现如下: te ...
分类:
Web程序 时间:
2019-01-14 21:22:44
阅读次数:
1037
一维卷积 在tensorflow中,可以使用 实现一维卷积。 : 输入Tensor : int, 输出Tensor维度 : int/tuple or list of int, 一维卷积窗口的大小 : int/tuple or list of int, 卷积步长 : /`same` : int/tup ...
分类:
其他好文 时间:
2019-01-13 22:18:31
阅读次数:
242
原文地址:https://zhuanlan.zhihu.com/p/31494491 上次我总结了在PyTorch中建立随机数Tensor的多种方法的区别。这次我把常用的Tensor的数学运算总结到这里,以防自己在使用PyTorch做实验时,忘记这些方法应该传什么参数。总结的方法包括:Tensor求 ...
分类:
其他好文 时间:
2019-01-10 20:51:24
阅读次数:
1591
查看tensorflow版本,可以在终端输入查询命令如下: 查询tensorflow安装路径为: 查询结果为: ...
分类:
系统相关 时间:
2019-01-09 15:47:26
阅读次数:
199
# import tensorflow as tf # # hello=tf.constant("hello tensorflow!!") # session=tf.Session() # # print(session.run(hello)) import cv2 print('hello ope... ...
分类:
其他好文 时间:
2019-01-08 23:36:08
阅读次数:
181
def gen_rand_data(tensor_arg): rand_func = { "randint":__gen_rand_randint } func = rand_func[tensor_arg] return func(tensor_arg) def __gen_rand_randin ...
分类:
其他好文 时间:
2019-01-06 18:24:36
阅读次数:
210