【发布时间】:2021-12-31 18:11:54
【问题描述】:
在基于 CNN 的自动编码器中,您会增加还是减少层之间的过滤器数量?当我们压缩信息时,我正在考虑减少。
这里是编码器部分的示例,其中过滤器的数量在每个新层都减少了,从 16 到 8 到 4。
x = Conv2D(filters = 16, kernel_size = 3, activation='relu', padding='same', name='encoder_1a')(inputs)
x = MaxPooling2D(pool_size = (2, 2), padding='same', name='encoder_1b')(x)
x = Conv2D(filters = 8, kernel_size = 3, activation='relu', padding='same', name='encoder_2a')(x)
x = MaxPooling2D(pool_size = (2, 2), padding='same', name='encoder_2b')(x)
x = Conv2D(filters = 4, kernel_size = 3, activation='relu', padding='same', name='encoder_3a')(x)
x = MaxPooling2D(pool_size = (2, 2), padding='same', name='encoder_3b')(x)
【问题讨论】:
标签: keras conv-neural-network autoencoder