@ShayanPersonal Hello, I am trying to use this stacked-autoencoder code to classify my own data. However, I just occurred this problem. Could I ask what's the size of your input training data? my training data was the matrix with 1280*320, and the labeled data was the matrix with (1280,1). That means a lot to me if you could share this information with me.

Thanks for your help in advance.
Best regards
Irving