Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when checking input in validate_rnn.py #131

Open
AvaniPitre opened this issue Jun 6, 2019 · 0 comments
Open

Error when checking input in validate_rnn.py #131

AvaniPitre opened this issue Jun 6, 2019 · 0 comments

Comments

@AvaniPitre
Copy link

Hello I have successfully trained with lstm and trying to run validate_rnn.py
getting the following input shape error.. Please guide … How I need to make changes input?
Traceback (most recent call last):
File "validate_rnn.py", line 55, in
main()
File "validate_rnn.py", line 52, in main
image_shape=image_shape, class_limit=4)
File "validate_rnn.py", line 34, in validate
val_samples=3200)
File "C:\venv\lib\site-packages\keras\legacy\interfaces.py", line 88, in wrapper
return func(*args, **kwargs)
File "C:\venv\lib\site-packages\keras\engine\training.py", line 2021, in evaluate_generator
outs = self.test_on_batch(x, y, sample_weight=sample_weight)
File "C:\venv\lib\site-packages\keras\engine\training.py", line 1678, in test_on_batch
check_batch_axis=True)
File "C:\venv\lib\site-packages\keras\engine\training.py", line 1311, in _standardize_user_data
exception_prefix='input')
File "C:\venv\lib\site-packages\keras\engine\training.py", line 127, in _standardize_input_data
str(array.shape))
ValueError: Error when checking input: expected input_1 to have 4 dimensions, but got array with shape (32, 40, 2048)

I am new to deeplearing
Anyone one please help

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant