python
ACGlyt
这个作者很懒,什么都没留下…
展开
-
Python 的argparse解析包
eg:原创 2018-05-11 15:36:07 · 290 阅读 · 0 评论 -
命名空间:tf.variable_scope()函数和tf.name_scope()函数的使用及区别
先看代码:#命名空间函数tf.variable_scope()和tf.name_scope()函数区别于使用import tensorflow as tfwith tf.variable_scope("foo"): a = tf.get_variable("bar", [1]) print(a.name) #foo/bar:0 ...原创 2018-05-22 12:48:20 · 2824 阅读 · 0 评论 -
图像的大小翻转标注框处理函数
转载:https://blog.csdn.net/cunyizhang/article/details/78980880图像预处理结合实战Google深度学习框架和博客添加了自己总结的注释、笔记。图像读取 tf.gfile.FastGFile(“/path/to/picture”, ‘r’).read() 图像格式的编码解码 :图像不直接记录图像上的不同位置,不同颜色的亮度。...原创 2019-08-07 17:39:17 · 153 阅读 · 0 评论 -
【logging模块】
import logginglogging.basicConfig()函数包含的参数:filename:日志文件名;filemode:日志文件的打开模式,'w'或'a';format:输出的格式和内容;level:消息等级,比如INFO,debug,error,warning等;stream:其中,format参数:%(levelno)s:打印日志级别的数值%...原创 2019-08-07 17:40:22 · 116 阅读 · 0 评论 -
TensorFlow错误
错误一在反卷积tf.nn.covn2d_transpose时报错:输入和计算的输入梯度类型不匹配ValueError: Incompatible shapes between op input and calculated input gradient. Forward operation: inference/conv2d_transpose_3. Input index: 2....原创 2019-02-02 17:47:44 · 1197 阅读 · 2 评论