![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
numpy
Exdous rivière
这个作者很懒,什么都没留下…
展开
-
张量的一些特殊切片操作,
import tensorflow as tf import numpy as np def convert_to_xywh(boxes): # 取前两列(取所有的行) print(boxes[..., :2]) return tf.concat( [(boxes[..., :2] + boxes[..., 2:]) / 2.0, boxes[..., 2:] - boxes[..., :2]], axis=-1, ) box = [[13,原创 2020-11-06 16:04:41 · 398 阅读 · 0 评论 -
怎么理解np.random.seed()?
这个博主写的非常好,推荐 https://www.cnblogs.com/subic/p/8454025.html转载 2019-11-11 21:00:49 · 135 阅读 · 0 评论