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
c78b0624
Unverified
Commit
c78b0624
authored
Nov 03, 2017
by
vivek rathod
Committed by
GitHub
Nov 03, 2017
Browse files
Merge pull request #2698 from tombstone/py3compat
fix py3 compatibility issues.
parents
1e2ada24
730bf06b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
research/object_detection/builders/model_builder_test.py
research/object_detection/builders/model_builder_test.py
+2
-2
research/object_detection/utils/config_util.py
research/object_detection/utils/config_util.py
+1
-1
No files found.
research/object_detection/builders/model_builder_test.py
View file @
c78b0624
...
...
@@ -331,7 +331,7 @@ class ModelBuilderTest(tf.test.TestCase):
}"""
model_proto
=
model_pb2
.
DetectionModel
()
text_format
.
Merge
(
model_text_proto
,
model_proto
)
for
extractor_type
,
extractor_class
in
FEATURE_EXTRACTOR_MAPS
.
iter
items
():
for
extractor_type
,
extractor_class
in
FEATURE_EXTRACTOR_MAPS
.
items
():
model_proto
.
faster_rcnn
.
feature_extractor
.
type
=
extractor_type
model
=
model_builder
.
build
(
model_proto
,
is_training
=
True
)
self
.
assertIsInstance
(
model
,
faster_rcnn_meta_arch
.
FasterRCNNMetaArch
)
...
...
@@ -730,7 +730,7 @@ class ModelBuilderTest(tf.test.TestCase):
}"""
model_proto
=
model_pb2
.
DetectionModel
()
text_format
.
Merge
(
model_text_proto
,
model_proto
)
for
extractor_type
,
extractor_class
in
FEATURE_EXTRACTOR_MAPS
.
iter
items
():
for
extractor_type
,
extractor_class
in
FEATURE_EXTRACTOR_MAPS
.
items
():
model_proto
.
faster_rcnn
.
feature_extractor
.
type
=
extractor_type
model
=
model_builder
.
build
(
model_proto
,
is_training
=
True
)
self
.
assertIsInstance
(
model
,
rfcn_meta_arch
.
RFCNMetaArch
)
...
...
research/object_detection/utils/config_util.py
View file @
c78b0624
...
...
@@ -195,7 +195,7 @@ def merge_external_params_with_configs(configs, hparams=None, **kwargs):
if
hparams
:
kwargs
.
update
(
hparams
.
values
())
for
key
,
value
in
kwargs
.
iter
items
():
for
key
,
value
in
kwargs
.
items
():
if
key
==
"learning_rate"
:
_update_initial_learning_rate
(
configs
,
value
)
tf
.
logging
.
info
(
"Overwriting learning rate: %f"
,
value
)
...
...
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