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

UnboundLocalError: local variable 'outs' referenced before assignment #5

Open
thassan66 opened this issue Dec 12, 2017 · 0 comments
Open

Comments

@thassan66
Copy link

I am trying to evaluate the images via 'inception.015-0.27.hdf5' model.
I set test_data_num = 15 in order to check its working or not. i am getting following error.
before that i tried on while dataset and its running since 2017-12-09 10:01:09 and the process is not completed. i am getting upset if after so many days i will get an exception so that i tried with small amount of images but it gaves error.
Please help to get rid of this.
Traceback (most recent call last):
File "CNN_evaluate_testset.py", line 33, in
main()
File "CNN_evaluate_testset.py", line 27, in main
results = model.evaluate_generator(generator=test_generator, steps=test_data_num // batch_size)
File "/home/taimoor/anaconda3/envs/my_env/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 88, in wrapper
return func(*args, **kwargs)
File "/home/taimoor/anaconda3/envs/my_env/lib/python3.6/site-packages/keras/engine/training.py", line 2038, in evaluate_generator
if not isinstance(outs, list):
UnboundLocalError: local variable 'outs' referenced before assignment

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