Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
9f34ac99
Commit
9f34ac99
authored
Nov 27, 2018
by
Priya Gupta
Browse files
Fix steps per epoch and tensorboard logging
parent
950e1def
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
official/resnet/keras/keras_imagenet_main.py
official/resnet/keras/keras_imagenet_main.py
+3
-3
No files found.
official/resnet/keras/keras_imagenet_main.py
View file @
9f34ac99
...
...
@@ -264,8 +264,8 @@ def run_imagenet_with_keras(flags_obj):
time_callback
=
TimeHistory
(
flags_obj
.
batch_size
)
tesorboard_callback
=
tf
.
keras
.
callbacks
.
TensorBoard
(
log_dir
=
flags_obj
.
model_dir
,
update_freq
=
"batch"
)
#
Remove
this if
don't
want per batch logging.
log_dir
=
flags_obj
.
model_dir
)
#
update_freq="batch") #
Add
this if want per batch logging.
lr_callback
=
LearningRateBatchScheduler
(
learning_rate_schedule
,
...
...
@@ -277,7 +277,7 @@ def run_imagenet_with_keras(flags_obj):
model
.
fit
(
train_input_dataset
,
epochs
=
flags_obj
.
train_epochs
,
steps_per_epoch
=
5
,
#
steps_per_epoch,
steps_per_epoch
=
steps_per_epoch
,
callbacks
=
[
time_callback
,
lr_callback
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment