Unverified Commit f7f171fb authored by derekjchow's avatar derekjchow Committed by GitHub
Browse files

Merge pull request #4987 from TwistedHardware/master

Bug fix: change dict.iteritems() to dict.items()
parents f0e10716 e2ea9eb4
...@@ -392,7 +392,7 @@ def create_model_fn(detection_model_fn, configs, hparams, use_tpu=False): ...@@ -392,7 +392,7 @@ def create_model_fn(detection_model_fn, configs, hparams, use_tpu=False):
if img_summary is not None: if img_summary is not None:
eval_metric_ops['Detections_Left_Groundtruth_Right'] = ( eval_metric_ops['Detections_Left_Groundtruth_Right'] = (
img_summary, tf.no_op()) img_summary, tf.no_op())
eval_metric_ops = {str(k): v for k, v in eval_metric_ops.iteritems()} eval_metric_ops = {str(k): v for k, v in eval_metric_ops.items()}
if eval_config.use_moving_averages: if eval_config.use_moving_averages:
variable_averages = tf.train.ExponentialMovingAverage(0.0) variable_averages = tf.train.ExponentialMovingAverage(0.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment