How to solve this problem?
See original GitHub issueTraceback (most recent call last):
File "train_liveness.py", line 142, in <module>
epochs=EPOCHS)
File "C:\Users\Gepeng-Ji\Anaconda3\envs\keras\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "C:\Users\Gepeng-Ji\Anaconda3\envs\keras\lib\site-packages\keras\engine\training.py", line 1418, in fit_generator
initial_epoch=initial_epoch)
File "C:\Users\Gepeng-Ji\Anaconda3\envs\keras\lib\site-packages\keras\engine\training_generator.py", line 144, in fit_generator
val_x, val_y, val_sample_weight)
File "C:\Users\Gepeng-Ji\Anaconda3\envs\keras\lib\site-packages\keras\engine\training.py", line 751, in _standardize_user_data
exception_prefix='input')
File "C:\Users\Gepeng-Ji\Anaconda3\envs\keras\lib\site-packages\keras\engine\training_utils.py", line 128, in standardize_input_data
'with shape ' + str(data_shape))
ValueError: Error when checking input: expected input_2 to have 2 dimensions, but got array with shape (78, 2, 2)
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Solve - Step-by-Step Math Problem Solver
QuickMath allows students to get instant solutions to all kinds of math problems, from algebra and equation solving right through to calculus and...
Read more >How to Solve Problems - Harvard Business Review
First, map out what you remember from each step of your problem-solving. Were all of you on the same page at each stage?...
Read more >3 Ways to Solve a Problem - wikiHow
1. Define the problem. Find the real problem, not just the symptoms that result from the problem. When defining the problem, do not...
Read more >11 Brilliant Problem-Solving Techniques Nobody Taught You
All you need to do is ask the question “Why” five times. Start with the problem at hand and ask why it happened,...
Read more >What is Problem Solving? Steps, Process & Techniques - ASQ
The Problem-Solving Process · 1. Define the problem. Differentiate fact from opinion; Specify underlying causes · 2. Generate alternative solutions. Postpone ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s because that labels are one-hot encoded twice. Please try to remove following line:
ImageDataGenerator doesn’t support the tuple ([X_train, y_train], y_train)… Please try following code: