plot_utils.py 文件源码

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

项目:tensorflow-mnist-VAE 作者: hwalsuklee 项目源码 文件源码
def _merge(self, images, size):
        h, w = images.shape[1], images.shape[2]

        h_ = int(h * self.resize_factor)
        w_ = int(w * self.resize_factor)

        img = np.zeros((h_ * size[0], w_ * size[1]))

        for idx, image in enumerate(images):
            i = int(idx % size[1])
            j = int(idx / size[1])

            image_ = imresize(image, size=(w_,h_), interp='bicubic')

            img[j*h_:j*h_+h_, i*w_:i*w_+w_] = image_

        return img
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号