title: cannot reshape array of size 23715 into shape (224,224,3)
body: <p>i am doing a skin cancer detection algorithm. The problem is that i have 2635 RGB images of 224 by 224 pixels. After data augmentation i get 23715 images (train_data).</p>
  
  <p>My problem is that i get this error --> ValueError: cannot reshape array of size 23715 into shape (224,224,3)</p>
  
  <p>This is my code:</p>
  
  <pre><code>X = np.array([i[0] for i in train_data]).reshape(-1, IMG_SIZE, IMG_SIZE, 3)
  Y = [i[1] for i in train_data]
  
  test_x = np.array([i[0] for i in test_data]).reshape(-1, IMG_SIZE, IMG_SIZE, 3)
  test_y = [i[1] for i in test_data]
  
  model.fit({'input': X}, {'targets': Y}, n_epoch=10, shuffle=True, validation_set=({'input': test_x}, {'targets': test_y}),  
  snapshot_step=500, show_metric=True, run_id=MODEL_NAME)
  </code></pre>
  
  <p>What should i do to fix this issue? Looking in the internet i have found similar errors but i still have problems to fix it.</p>