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

ZeroDivisionError: integer division or modulo by zero #16

Closed
julianL0veios opened this issue Feb 11, 2017 · 1 comment
Closed

ZeroDivisionError: integer division or modulo by zero #16

julianL0veios opened this issue Feb 11, 2017 · 1 comment

Comments

@julianL0veios
Copy link

julianL0veios commented Feb 11, 2017

I'm a beginner,and i got those issues,what that means?

gine/training.py", line 429, in data_generator_task
generator_output = next(self._generator)
File "/Users/zhangfei/anaconda3/envs/venv/lib/python3.5/site-packages/keras/preprocessing/image.py", line 662, in next
return self.next(*args, **kwargs)
File "/Users/zhangfei/anaconda3/envs/venv/lib/python3.5/site-packages/keras/preprocessing/image.py", line 708, in next
index_array, current_index, current_batch_size = next(self.index_generator)
File "/Users/zhangfei/anaconda3/envs/venv/lib/python3.5/site-packages/keras/preprocessing/image.py", line 645, in _flow_index
current_index = (self.batch_index * batch_size) % n
ZeroDivisionError: integer division or modulo by zero

Traceback (most recent call last):
File "boss_train.py", line 178, in
model.train(dataset, nb_epoch=10)
File "boss_train.py", line 143, in train
validation_data=(dataset.X_valid, dataset.Y_valid))
File "/Users/zhangfei/anaconda3/envs/venv/lib/python3.5/site-packages/keras/models.py", line 935, in fit_generator
initial_epoch=initial_epoch)
File "/Users/zhangfei/anaconda3/envs/venv/lib/python3.5/site-packages/keras/engine/training.py", line 1600, in fit_generator
callbacks.on_epoch_end(epoch, epoch_logs)
UnboundLocalError: local variable 'epoch_logs' referenced before assignment

@julianL0veios
Copy link
Author

its the image problem!

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