摘要: tf.whereimport tensorflow as tftemp = tf.reshape(tf.range(0, 16) + tf.constant(1, shape=[16]), [4, 1, 2, 2])category_index = tf.w... 阅读全文
posted @ 2018-10-18 22:23 overfitover 阅读(508) 评论(0) 推荐(0) 编辑
摘要: NMS 非极大值抑制import tensorflow as tfimport numpy as nprects=np.asarray([[1,2,3,4],[1,3,3,4], [1,3,4,4],[1,1,4,4],[1,1,3,4]],dtype=np... 阅读全文
posted @ 2018-10-18 16:30 overfitover 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 线性函数预测import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltx_data = np.random.rand(100).astype(np.float32)y_da... 阅读全文
posted @ 2018-10-18 16:17 overfitover 阅读(296) 评论(0) 推荐(0) 编辑