Sorry, you are right. I messed something else up with the test data. It works now. Thank you so much!!
Just one question. Now the input_dim for the LSTM is 36 (and doesn’t correspond to the dimension of the images anymore, which was 28). Is this okay?