Tensor values fading off through CNN Encoder

Hi everyone,

I’m working on an Autoencoder. My problem is that the output of the Decoder is always flat (all pixels are the same value) and does not reconstruct the image well.

I’ve explored the output of each layer and I’ve noticed that the tensor values become zero as the image goes through the Encoder layers.

Do somebody have any idea of why is this happening?

Thanks!