Skip to content

Commit

Permalink
Fix compatibility for model_builder_test.py (tensorflow#1571)
Browse files Browse the repository at this point in the history
iteritems -> items
  • Loading branch information
justanhduc authored and sguada committed Jun 17, 2017
1 parent 8d91ce7 commit 1b2c67a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions object_detection/builders/model_builder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_create_faster_rcnn_resnet_v1_models_from_config(self):
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.iteritems():
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)
Expand Down Expand Up @@ -445,7 +445,7 @@ def test_create_rfcn_resnet_v1_model_from_config(self):
}"""
model_proto = model_pb2.DetectionModel()
text_format.Merge(model_text_proto, model_proto)
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.iteritems():
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)
Expand Down

0 comments on commit 1b2c67a

Please sign in to comment.