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
d5fc3ef0
"vscode:/vscode.git/clone" did not exist on "91c72cdf520dc9d2b4614771a6fdc98f29f250e2"
Commit
d5fc3ef0
authored
Apr 04, 2018
by
pkulzc
Browse files
Merge remote-tracking branch 'upstream/master'
parents
6b72b5cd
57b99319
Changes
52
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
26 additions
and
24 deletions
+26
-24
CODEOWNERS
CODEOWNERS
+1
-1
official/mnist/mnist.py
official/mnist/mnist.py
+1
-1
official/mnist/mnist_eager.py
official/mnist/mnist_eager.py
+1
-1
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+2
-2
official/utils/arg_parsers/parsers.py
official/utils/arg_parsers/parsers.py
+1
-1
official/utils/logs/__init__.py
official/utils/logs/__init__.py
+0
-0
official/utils/logs/benchmark_uploader.py
official/utils/logs/benchmark_uploader.py
+2
-2
official/utils/logs/hooks.py
official/utils/logs/hooks.py
+0
-0
official/utils/logs/hooks_helper.py
official/utils/logs/hooks_helper.py
+2
-2
official/utils/logs/hooks_helper_test.py
official/utils/logs/hooks_helper_test.py
+1
-1
official/utils/logs/hooks_test.py
official/utils/logs/hooks_test.py
+1
-1
official/utils/logs/logger.py
official/utils/logs/logger.py
+0
-0
official/utils/logs/logger_test.py
official/utils/logs/logger_test.py
+1
-1
official/utils/logs/metric_hook.py
official/utils/logs/metric_hook.py
+2
-2
official/utils/logs/metric_hook_test.py
official/utils/logs/metric_hook_test.py
+3
-1
official/wide_deep/wide_deep.py
official/wide_deep/wide_deep.py
+1
-1
research/README.md
research/README.md
+2
-2
research/attention_ocr/python/common_flags.py
research/attention_ocr/python/common_flags.py
+1
-1
research/deeplab/common.py
research/deeplab/common.py
+0
-1
research/deeplab/core/xception_test.py
research/deeplab/core/xception_test.py
+4
-3
No files found.
CODEOWNERS
View file @
d5fc3ef0
...
...
@@ -10,7 +10,7 @@
/research/compression/ @nmjohn
/research/deeplab/ @aquariusjay @yknzhu @gpapan
/research/delf/ @andrefaraujo
/research/differential_privacy/ @panyx0718
/research/differential_privacy/ @panyx0718
@mironov
/research/domain_adaptation/ @bousmalis @dmrd
/research/gan/ @joel-shor
/research/im2txt/ @cshallue
...
...
official/mnist/mnist.py
View file @
d5fc3ef0
...
...
@@ -24,7 +24,7 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
from
official.mnist
import
dataset
from
official.utils.arg_parsers
import
parsers
from
official.utils.log
ging
import
hooks_helper
from
official.utils.log
s
import
hooks_helper
LEARNING_RATE
=
1e-4
...
...
official/mnist/mnist_eager.py
View file @
d5fc3ef0
...
...
@@ -107,7 +107,7 @@ def main(argv):
(
device
,
data_format
)
=
(
'/cpu:0'
,
'channels_last'
)
# If data_format is defined in FLAGS, overwrite automatically set value.
if
flags
.
data_format
is
not
None
:
data_format
=
data_format
data_format
=
flags
.
data_format
print
(
'Using device %s, and data format %s.'
%
(
device
,
data_format
))
# Load the datasets
...
...
official/resnet/resnet_run_loop.py
View file @
d5fc3ef0
...
...
@@ -31,8 +31,8 @@ import tensorflow as tf # pylint: disable=g-bad-import-order
from
official.resnet
import
resnet_model
from
official.utils.arg_parsers
import
parsers
from
official.utils.export
import
export
from
official.utils.log
ging
import
hooks_helper
from
official.utils.log
ging
import
logger
from
official.utils.log
s
import
hooks_helper
from
official.utils.log
s
import
logger
################################################################################
...
...
official/utils/arg_parsers/parsers.py
View file @
d5fc3ef0
...
...
@@ -132,7 +132,7 @@ class BaseParser(argparse.ArgumentParser):
"Example: --hooks LoggingTensorHook ExamplesPerSecondHook. "
"Allowed hook names (case-insensitive): LoggingTensorHook, "
"ProfilerHook, ExamplesPerSecondHook, LoggingMetricHook."
"See official.utils.log
ging
.hooks_helper for details."
,
"See official.utils.log
s
.hooks_helper for details."
,
metavar
=
"<HK>"
)
...
...
official/utils/log
ging
/__init__.py
→
official/utils/log
s
/__init__.py
View file @
d5fc3ef0
File moved
official/utils/log
ging
/benchmark_uploader.py
→
official/utils/log
s
/benchmark_uploader.py
View file @
d5fc3ef0
...
...
@@ -34,7 +34,7 @@ from google.cloud import bigquery
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.arg_parsers
import
parsers
from
official.utils.log
ging
import
logger
from
official.utils.log
s
import
logger
class
BigQueryUploader
(
object
):
...
...
official/utils/log
ging
/hooks.py
→
official/utils/log
s
/hooks.py
View file @
d5fc3ef0
File moved
official/utils/log
ging
/hooks_helper.py
→
official/utils/log
s
/hooks_helper.py
View file @
d5fc3ef0
...
...
@@ -26,8 +26,8 @@ from __future__ import print_function
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.log
ging
import
hooks
from
official.utils.log
ging
import
metric_hook
from
official.utils.log
s
import
hooks
from
official.utils.log
s
import
metric_hook
_TENSORS_TO_LOG
=
dict
((
x
,
x
)
for
x
in
[
'learning_rate'
,
'cross_entropy'
,
...
...
official/utils/log
ging
/hooks_helper_test.py
→
official/utils/log
s
/hooks_helper_test.py
View file @
d5fc3ef0
...
...
@@ -23,7 +23,7 @@ import unittest
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.log
ging
import
hooks_helper
from
official.utils.log
s
import
hooks_helper
class
BaseTest
(
unittest
.
TestCase
):
...
...
official/utils/log
ging
/hooks_test.py
→
official/utils/log
s
/hooks_test.py
View file @
d5fc3ef0
...
...
@@ -24,7 +24,7 @@ import time
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
tensorflow.python.training
import
monitored_session
# pylint: disable=g-bad-import-order
from
official.utils.log
ging
import
hooks
from
official.utils.log
s
import
hooks
tf
.
logging
.
set_verbosity
(
tf
.
logging
.
ERROR
)
...
...
official/utils/log
ging
/logger.py
→
official/utils/log
s
/logger.py
View file @
d5fc3ef0
File moved
official/utils/log
ging
/logger_test.py
→
official/utils/log
s
/logger_test.py
View file @
d5fc3ef0
...
...
@@ -26,7 +26,7 @@ import unittest
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.log
ging
import
logger
from
official.utils.log
s
import
logger
class
BenchmarkLoggerTest
(
tf
.
test
.
TestCase
):
...
...
official/utils/log
ging
/metric_hook.py
→
official/utils/log
s
/metric_hook.py
View file @
d5fc3ef0
...
...
@@ -18,9 +18,9 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
print_function
import
tensorflow
as
tf
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.log
ging
import
logger
from
official.utils.log
s
import
logger
class
LoggingMetricHook
(
tf
.
train
.
LoggingTensorHook
):
...
...
official/utils/log
ging
/metric_hook_test.py
→
official/utils/log
s
/metric_hook_test.py
View file @
d5fc3ef0
...
...
@@ -24,15 +24,17 @@ import time
import
tensorflow
as
tf
from
tensorflow.python.training
import
monitored_session
from
official.utils.log
ging
import
metric_hook
from
official.utils.log
s
import
metric_hook
# pylint: disable=g-bad-import-order
class
LoggingMetricHookTest
(
tf
.
test
.
TestCase
):
"""Tests for LoggingMetricHook."""
def
setUp
(
self
):
super
(
LoggingMetricHookTest
,
self
).
setUp
()
class
MockMetricLogger
(
object
):
def
__init__
(
self
):
self
.
logged_metric
=
[]
...
...
official/wide_deep/wide_deep.py
View file @
d5fc3ef0
...
...
@@ -25,7 +25,7 @@ import sys
import
tensorflow
as
tf
# pylint: disable=g-bad-import-order
from
official.utils.arg_parsers
import
parsers
from
official.utils.log
ging
import
hooks_helper
from
official.utils.log
s
import
hooks_helper
_CSV_COLUMNS
=
[
'age'
,
'workclass'
,
'fnlwgt'
,
'education'
,
'education_num'
,
...
...
research/README.md
View file @
d5fc3ef0
...
...
@@ -28,8 +28,8 @@ installation](https://www.tensorflow.org/install).
pre-trained Residual GRU network.
-
[
deeplab
](
deeplab
)
: deep labelling for semantic image segmentation.
-
[
delf
](
delf
)
: deep local features for image matching and retrieval.
-
[
differential_privacy
](
differential_privacy
)
:
privacy-preserving student
models from multiple teachers
.
-
[
differential_privacy
](
differential_privacy
)
:
differential privacy for training
data
.
-
[
domain_adaptation
](
domain_adaptation
)
: domain separation networks.
-
[
gan
](
gan
)
: generative adversarial networks.
-
[
im2txt
](
im2txt
)
: image-to-text neural network for image captioning.
...
...
research/attention_ocr/python/common_flags.py
View file @
d5fc3ef0
...
...
@@ -73,7 +73,7 @@ def define():
flags
.
DEFINE_string
(
'optimizer'
,
'momentum'
,
'the optimizer to use'
)
flags
.
DEFINE_
string
(
'momentum'
,
0.9
,
flags
.
DEFINE_
float
(
'momentum'
,
0.9
,
'momentum value for the momentum optimizer if used'
)
flags
.
DEFINE_bool
(
'use_augment_input'
,
True
,
...
...
research/deeplab/common.py
View file @
d5fc3ef0
...
...
@@ -95,7 +95,6 @@ ORIGINAL_IMAGE = 'original_image'
# Test set name.
TEST_SET
=
'test'
class
ModelOptions
(
collections
.
namedtuple
(
'ModelOptions'
,
[
'outputs_to_num_classes'
,
...
...
research/deeplab/core/xception_test.py
View file @
d5fc3ef0
...
...
@@ -14,6 +14,7 @@
# ==============================================================================
"""Tests for xception.py."""
import
six
import
numpy
as
np
import
tensorflow
as
tf
...
...
@@ -309,7 +310,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
14
,
14
,
4
],
'xception/exit_flow/block1'
:
[
2
,
7
,
7
,
8
],
'xception/exit_flow/block2'
:
[
2
,
7
,
7
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testFullyConvolutionalEndpointShapes
(
self
):
...
...
@@ -330,7 +331,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
21
,
21
,
4
],
'xception/exit_flow/block1'
:
[
2
,
11
,
11
,
8
],
'xception/exit_flow/block2'
:
[
2
,
11
,
11
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testAtrousFullyConvolutionalEndpointShapes
(
self
):
...
...
@@ -352,7 +353,7 @@ class XceptionNetworkTest(tf.test.TestCase):
'xception/middle_flow/block1'
:
[
2
,
41
,
41
,
4
],
'xception/exit_flow/block1'
:
[
2
,
41
,
41
,
8
],
'xception/exit_flow/block2'
:
[
2
,
41
,
41
,
16
]}
for
endpoint
,
shape
in
endpoint_to_shape
.
iteritems
(
):
for
endpoint
,
shape
in
six
.
iteritems
(
endpoint_to_shape
):
self
.
assertListEqual
(
end_points
[
endpoint
].
get_shape
().
as_list
(),
shape
)
def
testAtrousFullyConvolutionalValues
(
self
):
...
...
Prev
1
2
3
Next
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