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

fix image_ocr example steps_per_epoch and validation_steps params #7696

Merged
merged 4 commits into from
Aug 23, 2017

Conversation

sosoxuc
Copy link
Contributor

@sosoxuc sosoxuc commented Aug 20, 2017

v1 to v2 migration fix

model.fit_generator(generator=img_gen.next_train(), steps_per_epoch=(words_per_epoch - val_words),
epochs=stop_epoch, validation_data=img_gen.next_val(), validation_steps=val_words,
model.fit_generator(generator=img_gen.next_train(), steps_per_epoch=(words_per_epoch - val_words) / minibatch_size,
epochs=stop_epoch, validation_data=img_gen.next_val(), validation_steps=val_words / minibatch_size,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use // instead. For shorter lines, use one line per keyword argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@fchollet fchollet merged commit dc091b0 into keras-team:master Aug 23, 2017
dschwertfeger added a commit to dschwertfeger/keras that referenced this pull request Oct 8, 2017
…github.com:dschwertfeger/keras into tensorboard-callback-embeddings-from-layer-outputs

* 'tensorboard-callback-embeddings-from-layer-outputs' of github.com:dschwertfeger/keras:
  Update for PPM format (keras-team#7750)
  Style fix
  Style fix
  Prepare 2.0.8 release.
  Update TFRecord example.
  Update backend docs.
  Style fix.
  Update README.md and setup.py.
  Minor optimizer consistency fixes.
  Recurrent layer to treat 2nd and the rest of inputs as initial_states (keras-team#7691)
  added 2 missing scripts to the README in the examples folder (keras-team#7734)
  Fixes and tests wrt step-wise training.
  Fix PEP8 (keras-team#7731)
  fix image_ocr example steps_per_epoch and validation_steps params (keras-team#7696)
  Remove requirement that batch_size divides len(x_train) in Variational Autoencoders examples. (keras-team#7716)
  Small fixes in training.py
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

Successfully merging this pull request may close these issues.

2 participants