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
1b2c67af
Commit
1b2c67af
authored
Jun 17, 2017
by
Duc Nguyen
Committed by
Sergio Guadarrama
Jun 16, 2017
Browse files
Fix compatibility for model_builder_test.py (#1571)
iteritems -> items
parent
8d91ce76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
object_detection/builders/model_builder_test.py
object_detection/builders/model_builder_test.py
+2
-2
No files found.
object_detection/builders/model_builder_test.py
View file @
1b2c67af
...
...
@@ -255,7 +255,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
)
...
...
@@ -445,7 +445,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
)
...
...
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