SouravJohar / rock-paper-scissors

An AI to play the Rock Paper Scissors game
80 stars 75 forks source link

Error when checking target: expected activation_18 to have shape (None, 4) but got array with shape (430, 3) #6

Open Shweta0002 opened 4 years ago

Shweta0002 commented 4 years ago

I am attaching link of my colab notebook . Please have a look and help me to solve this error. I am getting error while trying training the model https://colab.research.google.com/drive/1CSQNr5G4q1-xfisvGCp8deglhhMtQmLf

M0W93 commented 4 years ago

Im running into the same issue any solutions so far?

Shweta0002 commented 4 years ago

@MOW93 , can you share your notebook so I can have preview, I solved my problem by converting data and labels into array.

M0W93 commented 4 years ago

@MOW93 , can you share your notebook so I can have preview, I solved my problem by converting data and labels into array.

At the moment it is exactly the same Project as the Master Git Branch.

M0W93 commented 4 years ago

My Error is a little bit different than yours: ValueError: Error when checking target: expected activation_2 to have shape (None, 4) but got array with shape (600, 3)

nathanBarloy commented 4 years ago

I had this problem too, but I think it was because I didn't use gather_image.py for the 4 possible values (rock, paper, scissors and none). Once I did that, I had no problem.