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 while running demp.py #7

Open
MuhammadAsadJaved opened this issue Jan 22, 2019 · 0 comments
Open

Error while running demp.py #7

MuhammadAsadJaved opened this issue Jan 22, 2019 · 0 comments

Comments

@MuhammadAsadJaved
Copy link

Hi,
I get the following error while running demo.py file after installing required libraries.

(had) nyl@nyl:~/human-activity-dih18$ python demo.py
Using TensorFlow backend.
Categories Found 101
Input Stream: 0
2019-01-22 17:55:36.072776: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
[Errno 2] No such file or directory: 'results/saved.json'
Created Model successfully
0.0030963426309745246 -0.009095851368353003 0.3563824909277525 0.5261821433766081 0
-0.001895671513380548 0.03250532878511464 0.8702251590445159 0.9992113986022908 0
0.008527961674331702 -0.0007998917801733674 0.3543069217095458 0.4232888445756815 0
-0.005746190149005903 0.030725492451159575 0.8696193282026956 0.9969112367825927 0
Traceback (most recent call last):
File "demo.py", line 197, in
draw_boxes(inp, detected)
File "demo.py", line 40, in draw_boxes
prediction = classifier.predict(roi)[0]
File "/home/nyl/anaconda2/envs/had/lib/python3.6/site-packages/keras/engine/training.py", line 1147, in predict
x, _, _ = self._standardize_user_data(x)
File "/home/nyl/anaconda2/envs/had/lib/python3.6/site-packages/keras/engine/training.py", line 749, in _standardize_user_data
exception_prefix='input')
File "/home/nyl/anaconda2/envs/had/lib/python3.6/site-packages/keras/engine/training_utils.py", line 137, in standardize_input_data
str(data_shape))
ValueError: Error when checking input: expected conv2d_1_input to have shape (64, 64, 3) but got array with shape (64, 64, 1)

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