-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 'epoch_logs' referenced before assignment #17
Comments
I have the same error:
How can I fix it?? -----------------------------------update-------------------------------------------------It's my problem, I gave wrong photos's format *.png instead of *.jpg, so I saw this after read all photos:
When I changed all the extension of photos, It can work. |
Me too... get the same error:
eventhough already have the proper images as the resource
Can anyone explain what had happened? |
check this issue: keras-team/keras#450 for more details. The root cause is that |
BTW, this issue has been fixed by keras-team/keras#8854. Use the latest codes of keras shall fix this issue. |
boss_train.py errors have occurred.
/Users/icent/Documents/BossSensor/data/boss/dummy.jpg
X_train shape: (0, 64, 64, 3)
0 train samples
0 valid samples
1 test samples
~~
Total params: 6489634
Using real-time data augmentation.
Epoch 1/10
Traceback (most recent call last):
File "/Users/icent/Documents/BossSensor/boss_train.py", line 181, in
model.train(dataset, nb_epoch=10)
File "/Users/icent/Documents/BossSensor/boss_train.py", line 146, in train
validation_data=(dataset.X_valid, dataset.Y_valid))
File "/anaconda/envs/boss/lib/python3.5/site-packages/keras/models.py", line 874, in fit_generator
pickle_safe=pickle_safe)
File "/anaconda/envs/boss/lib/python3.5/site-packages/keras/engine/training.py", line 1485, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
UnboundLocalError: local variable 'epoch_logs' referenced before assignment
Help me!
The text was updated successfully, but these errors were encountered: