util.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:cnn_workshop 作者: Alfredvc 项目源码 文件源码
def transform(self, Xb, yb):
        Xb, yb = super(RotateBatchIterator, self).transform(Xb, yb)

        angle = np.random.randint(-10,11)
        Xb_rotated = rotate(Xb, angle, axes=(2, 3), reshape=False)

        return Xb_rotated, yb
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号