Reputation: 911
I'm training a model for object detection using tensorflow.. and while training, in the terminal, tensorflow prints the same info twice as follows :
INFO:tensorflow:global step 3292: loss = 3.2832 (2.960 sec/step)
INFO:tensorflow:global step 3292: loss = 3.2832 (2.960 sec/step)
INFO:tensorflow:global step 3293: loss = 3.5285 (3.675 sec/step)
INFO:tensorflow:global step 3293: loss = 3.5285 (3.675 sec/step)
INFO:tensorflow:global step 3294: loss = 2.3972 (3.564 sec/step)
INFO:tensorflow:global step 3294: loss = 2.3972 (3.564 sec/step)
INFO:tensorflow:Recording summary at step 3294.
INFO:tensorflow:Recording summary at step 3294.
INFO:tensorflow:global_step/sec: 0.294019
INFO:tensorflow:global_step/sec: 0.294019
I noticed this "issue" only while training using tensorflow installed from source, I trained two models using tensorflow installed using pip and the logging was normal. I don't see any side effect of this behavior but I'm curious about what's causing it. Any idea?
Upvotes: 4
Views: 1880
Reputation: 21
Open variables_helper.py
in models/research/object_detection/utils/variables_helper.py
and change import
like this:
import re
import tensorflow as tf
from tensorflow import logging as logging
slim = tf.contrib.slim
and it is solved.
Upvotes: 2