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
0b09300c
Commit
0b09300c
authored
May 16, 2019
by
JimintheBox
Committed by
aquariusjay
May 15, 2019
Browse files
Fix vis.py for the issue Waiting for new Checkpoint (#6789)
parent
03027e33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/deeplab/vis.py
research/deeplab/vis.py
+2
-3
No files found.
research/deeplab/vis.py
View file @
0b09300c
...
...
@@ -276,10 +276,7 @@ def main(unused_argv):
checkpoints_iterator
=
tf
.
contrib
.
training
.
checkpoints_iterator
(
FLAGS
.
checkpoint_dir
,
min_interval_secs
=
FLAGS
.
eval_interval_secs
)
for
checkpoint_path
in
checkpoints_iterator
:
if
max_num_iteration
>
0
and
num_iteration
>
max_num_iteration
:
break
num_iteration
+=
1
tf
.
logging
.
info
(
'Starting visualization at '
+
time
.
strftime
(
'%Y-%m-%d-%H:%M:%S'
,
time
.
gmtime
()))
...
...
@@ -313,6 +310,8 @@ def main(unused_argv):
tf
.
logging
.
info
(
'Finished visualization at '
+
time
.
strftime
(
'%Y-%m-%d-%H:%M:%S'
,
time
.
gmtime
()))
if
max_num_iteration
>
0
and
num_iteration
>=
max_num_iteration
:
break
if
__name__
==
'__main__'
:
flags
.
mark_flag_as_required
(
'checkpoint_dir'
)
...
...
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