Tensorflow[attention_ocr] eval.py Freezes
when I run the example that is wrote in the link
which is: A simple usage example:
python eval.py
the server freezes with the outputs:
(tensorflow)ubuntu@ip-172-31-31-92:/nsfs/tensor_models/models/research/attention_ocr/python$ python eval.py
INFO 2017-11-23 14:53:36.000674: fsns.py: 130 Using FSNS dataset split_name=train dataset_dir=/nsfs/tensor_models/models/research/attention_ocr/python/datasets/data/fsns
DEBUG 2017-11-23 14:53:36.000805: model.py: 354 images: Tensor("shuffle_batch:0", shape=(32, 150, 600, 3), dtype=float32)
DEBUG 2017-11-23 14:53:36.000838: model.py: 359 Views=4 single view: Tensor("AttentionOcr_v1/split:0", shape=(32, 150, 150, 3), dtype=float32)
DEBUG 2017-11-23 14:53:36.000838: model.py: 200 Using final_endpoint=Mixed_5d
DEBUG 2017-11-23 14:53:37.000284: model.py: 200 Using final_endpoint=Mixed_5d
DEBUG 2017-11-23 14:53:37.000419: model.py: 200 Using final_endpoint=Mixed_5d
DEBUG 2017-11-23 14:53:37.000553: model.py: 200 Using final_endpoint=Mixed_5d
DEBUG 2017-11-23 14:53:37.000688: model.py: 365 Conv tower: Tensor("AttentionOcr_v1/conv_tower_fn/INCE/InceptionV3/Mixed_5d/concat:0", shape=(32, 16, 16, 288), dtype=float32)
DEBUG 2017-11-23 14:53:37.000688: model.py: 368 Conv tower w/ encoded coordinates: Tensor("AttentionOcr_v1/conv_tower_fn/INCE/InceptionV3/Mixed_5d/concat:0", shape=(32, 16, 16, 288), dtype=float32)
DEBUG 2017-11-23 14:53:37.000690: model.py: 371 Pooled views: Tensor("AttentionOcr_v1/pool_views_fn/STCK/Reshape:0", shape=(32, 1024, 288), dtype=float32)
DEBUG 2017-11-23 14:53:37.000690: sequence_layers.py: 421 Use AttentionWithAutoregression as a layer class
DEBUG 2017-11-23 14:53:39.000137: model.py: 374 chars_logit: Tensor("AttentionOcr_v1/sequence_logit_fn/SQLR/concat:0", shape=(32, 37, 134), dtype=float32)
WARNING:tensorflow:From /nsfs/tensor_models/models/research/attention_ocr/python/model.py:406: get_total_loss (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_total_loss instead.
WARNING 2017-11-23 14:53:39.000864: tf_logging.py: 90 From /nsfs/tensor_models/models/research/attention_ocr/python/model.py:406: get_total_loss (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_total_loss instead.
WARNING:tensorflow:From /home/ubuntu/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py:261: get_losses (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_losses instead.
WARNING 2017-11-23 14:53:39.000865: tf_logging.py: 90 From /home/ubuntu/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py:261: get_losses (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_losses instead.
WARNING:tensorflow:From /home/ubuntu/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py:263: get_regularization_losses (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_regularization_losses instead.
WARNING 2017-11-23 14:53:39.000865: tf_logging.py: 90 From /home/ubuntu/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py:263: get_regularization_losses (from tensorflow.contrib.losses.python.losses.loss_ops) is deprecated and will be removed after 2016-12-30.
Instructions for updating:
Use tf.losses.get_regularization_losses instead.
WARNING:tensorflow:From eval.py:64: get_or_create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.get_or_create_global_step
WARNING 2017-11-23 14:53:39.000901: tf_logging.py: 90 From eval.py:64: get_or_create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.get_or_create_global_step
INFO:tensorflow:Waiting for new checkpoint at /tmp/attention_ocr/train
INFO 2017-11-23 14:53:39.000907: tf_logging.py: 82 Waiting for new checkpoint at /tmp/attention_ocr/train
@nealwu, could you please take a look?
The code owner for attention_ocr is @alexgorban. Reassigning.
The last line of the log says: INFO 2017-11-23 14:53:39.000907: tf_logging.py: 82 Waiting for new checkpoint at /tmp/attention_ocr/train
Do you have a checkpoint at /tmp/attention_ocr/train?
If not, please try to run the train.py first, at least for several steps, and make sure it generates checkpoints at the specified location.
hi why eval.py does not consume gpu completely, it just uses 115MiB / 8119MiB in my case.