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
844c1eb4
Commit
844c1eb4
authored
Feb 22, 2017
by
Neal Wu
Browse files
Set tf.logging verbosity to INFO
parent
d01a7239
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
resnet/resnet_main.py
resnet/resnet_main.py
+3
-4
resnet/resnet_model.py
resnet/resnet_model.py
+1
-1
No files found.
resnet/resnet_main.py
View file @
844c1eb4
...
...
@@ -162,10 +162,8 @@ def evaluate(hps):
tag
=
'Best Precision'
,
simple_value
=
best_precision
)
summary_writer
.
add_summary
(
best_precision_summ
,
train_step
)
summary_writer
.
add_summary
(
summaries
,
train_step
)
output_str
=
'loss: %.3f, precision: %.3f, best precision: %.3f
\n
'
%
\
(
loss
,
precision
,
best_precision
)
tf
.
logging
.
info
(
output_str
)
print
(
output_str
)
tf
.
logging
.
info
(
'loss: %.3f, precision: %.3f, best precision: %.3f'
%
(
loss
,
precision
,
best_precision
))
summary_writer
.
flush
()
if
FLAGS
.
eval_once
:
...
...
@@ -210,4 +208,5 @@ def main(_):
if
__name__
==
'__main__'
:
tf
.
logging
.
set_verbosity
(
tf
.
logging
.
INFO
)
tf
.
app
.
run
()
resnet/resnet_model.py
View file @
844c1eb4
...
...
@@ -221,7 +221,7 @@ class ResNet(object):
[(
out_filter
-
in_filter
)
//
2
,
(
out_filter
-
in_filter
)
//
2
]])
x
+=
orig_x
tf
.
logging
.
info
(
'image after unit %s'
,
x
.
get_shape
())
tf
.
logging
.
debug
(
'image after unit %s'
,
x
.
get_shape
())
return
x
def
_bottleneck_residual
(
self
,
x
,
in_filter
,
out_filter
,
stride
,
...
...
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