title: error with checking target: expected dense_49 to have 4 dimensions, but got array with shape (2250, 3)
body: <pre><code>model=models.Sequential()
  
  model.add(layers.Dense(7, activation='relu', input_shape=(50,50,3)))
  
  model.add(layers.Dense(7, activation='relu'))
  
  model.add(layers.Dense(3, activation='softmax'))
  
  model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
  
  model.fit(X_train,y_train,batch_size=50,epochs=10, verbose=1)
  
  results = model.evaluate(X_test, y_test)
  </code></pre>
  
  <p>The above is my python code. Can anyone tell my what am I missing. FYI, I have 2250 images in my training set, each of the shape <code>(50,50,3)</code>.</p>