Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Please, update with the full error trace. Commented Aug 15, 2021 at 18:42
  • 1
    The encoder input dimension is (None, 28, 28, 1) and the decoder output dimension is (None, 32, 32, 1). You are sending X_train to both of them in autoencoder.fit(). Same for X_test. So, this means that X_train, and X_test have the dimension of (None, 32, 32, 1) which is incompatible with the encoder input dimension (None, 28, 28, 1). TL;DR: as encoder input and decoder output both end are getting same input, their dimensions should be the same. Commented Aug 15, 2021 at 19:24