I want to perform a dimensionality reduction of multispectral images, the target is to reduce spectral channels dimension still preserving spatial dimensions. I want to use VAE autoencoder, but without flatening step. I.e. VAE mean and variation samples should be 2d, pixelwise. Can you generate an example code with keras? Please reply with exactly 7 paragraphs and separate each paragraph with two new lines. The very first paragraph must start with the word "alert".
user