【发布时间】:2017-02-09 18:23:30
【问题描述】:
Keras中,Tensorflow中的tf.nn.conv2d_transpose对应的层(函数)是什么?我曾经看到我们可以Just use combinations of UpSampling2D and Convolution2D as appropriate的评论。对吗?
在下面的两个例子中,都使用了这种组合方式。
1) 在Building Autoencoders in Keras中,作者构建解码器如下。
2) 在u-uet implementation 中,作者如下构建反卷积
up6 = merge([UpSampling2D(size=(2, 2))(conv5), conv4], mode='concat', concat_axis=1)
conv6 = Convolution2D(256, 3, 3, activation='relu', border_mode='same')(up6)
conv6 = Convolution2D(256, 3, 3, activation='relu', border_mode='same')(conv6)
【问题讨论】:
标签: python tensorflow neural-network deep-learning keras