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

densent训练出错 #38

Open
growvv opened this issue Jun 13, 2019 · 0 comments
Open

densent训练出错 #38

growvv opened this issue Jun 13, 2019 · 0 comments

Comments

@growvv
Copy link

growvv commented Jun 13, 2019

当我执行下面这句话时
res = model.fit_generator(cc1,
steps_per_epoch =3279601// batch_size,
epochs = 100,
validation_data =cc2 ,
validation_steps = 364400// batch_size,
callbacks =[earlystop,checkpoint,tensorboard],
verbose=1
)
出现如下错误:
Epoch 1/100

StopIteration Traceback (most recent call last)
in ()
4 validation_data =cc2 ,
5 validation_steps = 364400// batch_size,
----> 6 callbacks =[earlystop,checkpoint,tensorboard]
7 )

2 frames
/usr/local/lib/python3.6/dist-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch)
179 batch_index = 0
180 while steps_done < steps_per_epoch:
--> 181 generator_output = next(output_generator)
182
183 if not hasattr(generator_output, 'len'):

StopIteration:
请问,这个要如何解决?

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