我正在实现卷积自动编码器,并且很难找到卷积转置层(在解码器中)的正确形状。到目前为止,我的编码器看起来像
('convolution', num_outputs=256, kernel_size=48, stride=2, padding="SAME")
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution', num_outputs=256, kernel_size=32, stride=1, padding="SAME" )
现在,在解码器中,我试图恢复它。使用:
('convolution_transpose', num_outputs=256, kernel_size=32, stride=2, padding="SAME")
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=7, stride=1, padding="SAME" )
('convolution_transpose', num_outputs=256, kernel_size=48, stride=2, padding="SAME" )
('convolution_transpose', num_outputs=1, kernel_size=48, stride=2, padding="SAME" )
我无法重现输入的大小。
Input Size: (10, 161, 1800, 1)
Output Size: (10, 3600, 1024, 1)
知道解码器层的正确设置应该是什么吗?