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
1fffb174
Commit
1fffb174
authored
Apr 15, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 306688219
parent
31711f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/vision/image_classification/resnet/resnet_ctl_imagenet_main.py
...n/image_classification/resnet/resnet_ctl_imagenet_main.py
+3
-2
No files found.
official/vision/image_classification/resnet/resnet_ctl_imagenet_main.py
View file @
1fffb174
...
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
math
from
absl
import
app
from
absl
import
flags
from
absl
import
logging
...
...
@@ -81,8 +82,8 @@ def get_num_train_iterations(flags_obj):
train_steps
=
min
(
flags_obj
.
train_steps
,
train_steps
)
train_epochs
=
1
eval_steps
=
(
imagenet_preprocessing
.
NUM_IMAGES
[
'validation'
]
//
flags_obj
.
batch_size
)
eval_steps
=
math
.
ceil
(
1.0
*
imagenet_preprocessing
.
NUM_IMAGES
[
'validation'
]
/
flags_obj
.
batch_size
)
return
train_steps
,
train_epochs
,
eval_steps
...
...
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