Object Detection:Training stuck on saving checkpoint
I am currently running a object detection by using the Tensorflow Object Detection libraries and the faster_rcnn_inception_v2_pets model. It run successfully and started training but stuck on the saving checkpoint part after 10 minutes for 2 hours. I had tried double checking on the train.record and test.record, and make sure they were not empty.
The last few line looks like this: I1119 19:12:07.071426 12980 learning.py:507] global step 353: loss = 2.3939 (1.468 sec/step) INFO:tensorflow:Saving checkpoint to path training/model.ckpt I1119 19:12:07.790036 5184 supervisor.py:1117] Saving checkpoint to path training/model.ckpt
Besides i found out it actually saved successfully in the training file (model.ckpt-353.data-00000-of-00001) with 113MB size but it would not continue after it saved.
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce
i encountered same issue the actually Saving checkpoint to path training/model.ckpt is it ran from different thread periodically after 10 minutes or any configured value
so there is some Dead locks happen within Learning which i couldn't figure out till now after three weeks of investigation
the most noticeable thing that the processor become idle and GPU Dedicated Ram allocated by 90% and all of this code and configuration work normally on my laptop with GPU NVidia GEFORCE GTX 1050 TI
any help would be appreciated OS : Window 10 TensorFlow version : 1.15 "i tries a lot of version " TensorFlow installed from : GitHub CUDA/cuDNN version "10.0 , 7..6.5 i tired also 9.1 and 1.1 GPU model and memory : 16 GB , nvidia geforce gtx 1660 ti and nvidia geforce gtx 1680 ti
I encountered a similiar issue. I am using tensorflow-gpu==1.14.0+nv inside tensorflow docker container and post installed the object detection api. I can start the training but it stucks before any training step is done with Saving checkpoints for 0 into PATH/models/ssd_mobilenet/model.ckpt .
I encountered a similiar issue. I am using
tensorflow-gpu==1.14.0+nvinside tensorflow docker container and post installed the object detection api. I can start the training but it stucks before any training step is done withSaving checkpoints for 0 into PATH/models/ssd_mobilenet/model.ckpt.
I was able to solve the issue. The cause was my miscreated tfrecord-file. You can check for a miscreated dataset with this tfrecord-viewer https://github.com/sulc/tfrecord-viewer as well as with the following lines of code:
import tensorflow as tf
for example in tf.python_io.tf_record_iterator("data/foobar.tfrecord"):
print(tf.train.Example.FromString(example))
Credits: https://stackoverflow.com/a/42402484/8875438
i downgraded my NVIDIA Hard driver to support Cuda 10.1 instead of 10.2 from NVIDIA Site
this test across many machines and solved my issue
@DevLob-zz Any idea what can help when I train on CPU? I was able to do around 300 steps and then it got stuck and from that point it always gets stuck on step 0
My log
(tf1_env) C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research>python object_detection\model_main.py --model_dir=C:\Users\horakm\PyCharmProjects\YoutubeTut\assets\pets\training_output\out_1 --pipeline_config_path=C:\Users\horakm\PyCharmProjects\YoutubeTut\assets\pets\configs\pipeline2.config
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
* https://github.com/tensorflow/addons
* https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.
WARNING:tensorflow:From object_detection\model_main.py:109: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.
W0221 14:53:48.757183 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:628: The name tf.logging.warning is deprecated. Please use tf.compat.v1.logging.warning instead.
W0221 14:53:48.775186 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:628: The name tf.logging.warning is deprecated. Please use tf.compat.v1.logging.warning instead.
WARNING:tensorflow:Forced number of epochs for all eval validations to be 1.
W0221 14:53:48.786166 20664 model_lib.py:629] Forced number of epochs for all eval validations to be 1.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\config_util.py:488: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.
W0221 14:53:48.787168 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\config_util.py:488: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.
INFO:tensorflow:Maybe overwriting train_steps: None
I0221 14:53:48.791162 20664 config_util.py:488] Maybe overwriting train_steps: None
INFO:tensorflow:Maybe overwriting use_bfloat16: False
I0221 14:53:48.795162 20664 config_util.py:488] Maybe overwriting use_bfloat16: False
INFO:tensorflow:Maybe overwriting sample_1_of_n_eval_examples: 1
I0221 14:53:48.800169 20664 config_util.py:488] Maybe overwriting sample_1_of_n_eval_examples: 1
INFO:tensorflow:Maybe overwriting eval_num_epochs: 1
I0221 14:53:48.802163 20664 config_util.py:488] Maybe overwriting eval_num_epochs: 1
INFO:tensorflow:Maybe overwriting load_pretrained: True
I0221 14:53:48.803161 20664 config_util.py:488] Maybe overwriting load_pretrained: True
INFO:tensorflow:Ignoring config override key: load_pretrained
I0221 14:53:48.811200 20664 config_util.py:498] Ignoring config override key: load_pretrained
WARNING:tensorflow:Expected number of evaluation epochs is 1, but instead encountered `eval_on_train_input_config.num_epochs` = 0. Overwriting `num_epochs` to 1.
W0221 14:53:48.813163 20664 model_lib.py:645] Expected number of evaluation epochs is 1, but instead encountered `eval_on_train_input_config.num_epochs` = 0. Overwriting `num_epochs` to 1.
INFO:tensorflow:create_estimator_and_inputs: use_tpu False, export_to_tpu False
I0221 14:53:48.815163 20664 model_lib.py:680] create_estimator_and_inputs: use_tpu False, export_to_tpu False
INFO:tensorflow:Using config: {'_model_dir': 'C:\\Users\\horakm\\PyCharmProjects\\YoutubeTut\\assets\\pets\\training_output\\out_1', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_save_checkpoints_secs': 600, '_session_config': allow_soft_placement: true
graph_options {
rewrite_options {
meta_optimizer_iterations: ONE
}
}
, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': 100, '_train_distribute': None, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_experimental_max_worker_delay_secs': None, '_session_creation_timeout_secs': 7200, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x000001D6BDD95BA8>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1}
I0221 14:53:48.830217 20664 estimator.py:212] Using config: {'_model_dir': 'C:\\Users\\horakm\\PyCharmProjects\\YoutubeTut\\assets\\pets\\training_output\\out_1', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_save_checkpoints_secs': 600, '_session_config': allow_soft_placement: true
graph_options {
rewrite_options {
meta_optimizer_iterations: ONE
}
}
, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': 100, '_train_distribute': None, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_experimental_max_worker_delay_secs': None, '_session_creation_timeout_secs': 7200, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x000001D6BDD95BA8>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1}
WARNING:tensorflow:Estimator's model_fn (<function create_model_fn.<locals>.model_fn at 0x000001D6BDD97A60>) includes params argument, but params are not passed to Estimator.
W0221 14:53:48.845170 20664 model_fn.py:630] Estimator's model_fn (<function create_model_fn.<locals>.model_fn at 0x000001D6BDD97A60>) includes params argument, but params are not passed to Estimator.
INFO:tensorflow:Not using Distribute Coordinator.
I0221 14:53:48.847164 20664 estimator_training.py:186] Not using Distribute Coordinator.
INFO:tensorflow:Running training and evaluation locally (non-distributed).
I0221 14:53:48.849169 20664 training.py:612] Running training and evaluation locally (non-distributed).
INFO:tensorflow:Start train and evaluate loop. The evaluate will happen after every checkpoint. Checkpoint frequency is determined based on RunConfig arguments: save_checkpoints_steps None or save_checkpoints_secs 600.
I0221 14:53:48.858165 20664 training.py:700] Start train and evaluate loop. The evaluate will happen after every checkpoint. Checkpoint frequency is determined based on RunConfig arguments: save_checkpoints_steps None or save_checkpoints_secs 600.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\training\training_util.py:236: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts.
W0221 14:53:48.871191 20664 deprecation.py:323] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\training\training_util.py:236: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.
W0221 14:53:48.905263 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.
W0221 14:53:48.914263 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:64: The name tf.gfile.Glob is deprecated. Please use tf.io.gfile.glob instead.
W0221 14:53:48.946264 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:64: The name tf.gfile.Glob is deprecated. Please use tf.io.gfile.glob instead.
WARNING:tensorflow:num_readers has been reduced to 1 to match input file shards.
W0221 14:53:48.960268 20664 dataset_builder.py:72] num_readers has been reduced to 1 to match input file shards.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:86: parallel_interleave (from tensorflow.contrib.data.python.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.experimental.parallel_interleave(...)`.
W0221 14:53:48.971287 20664 deprecation.py:323] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:86: parallel_interleave (from tensorflow.contrib.data.python.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.experimental.parallel_interleave(...)`.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\contrib\data\python\ops\interleave_ops.py:77: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.experimental_determinstic`.
W0221 14:53:48.985286 20664 deprecation.py:323] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\contrib\data\python\ops\interleave_ops.py:77: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.experimental_determinstic`.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:155: DatasetV1.map_with_legacy_function (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.map()
W0221 14:53:49.026291 20664 deprecation.py:323] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:155: DatasetV1.map_with_legacy_function (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.map()
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.logging.warn is deprecated. Please use tf.compat.v1.logging.warn instead.
W0221 14:53:50.937341 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.logging.warn is deprecated. Please use tf.compat.v1.logging.warn instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.is_nan is deprecated. Please use tf.math.is_nan instead.
W0221 14:54:01.811820 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.is_nan is deprecated. Please use tf.math.is_nan instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\ops.py:493: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
W0221 14:54:01.958806 20664 deprecation.py:323] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\ops.py:493: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
W0221 14:54:05.424946 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\operators\control_flow.py:1004: sample_distorted_bounding_box (from tensorflow.python.ops.image_ops_impl) is deprecated and will be removed in a future version.
Instructions for updating:
`seed2` arg is deprecated.Use sample_distorted_bounding_box_v2 instead.
W0221 14:54:10.827285 20664 api.py:332] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\operators\control_flow.py:1004: sample_distorted_bounding_box (from tensorflow.python.ops.image_ops_impl) is deprecated and will be removed in a future version.
Instructions for updating:
`seed2` arg is deprecated.Use sample_distorted_bounding_box_v2 instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
W0221 14:54:17.619560 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead.
W0221 14:54:17.632576 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\inputs.py:166: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.cast` instead.
W0221 14:54:18.790615 20664 deprecation.py:323] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\inputs.py:166: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.cast` instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.string_to_hash_bucket_fast is deprecated. Please use tf.strings.to_hash_bucket_fast instead.
W0221 14:54:21.300706 20664 module_wrapper.py:139] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\autograph\converters\directives.py:119: The name tf.string_to_hash_bucket_fast is deprecated. Please use tf.strings.to_hash_bucket_fast instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:158: batch_and_drop_remainder (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.batch(..., drop_remainder=True)`.
W0221 14:54:22.278756 20664 deprecation.py:323] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\dataset_builder.py:158: batch_and_drop_remainder (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.batch(..., drop_remainder=True)`.
INFO:tensorflow:Calling model_fn.
I0221 14:54:22.313751 20664 estimator.py:1148] Calling model_fn.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:589: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead.
W0221 14:54:22.674772 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:589: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:597: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
W0221 14:54:22.684766 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:597: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\contrib\layers\python\layers\layers.py:1057: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.
Instructions for updating:
Please use `layer.__call__` method instead.
W0221 14:54:22.695765 20664 deprecation.py:323] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\contrib\layers\python\layers\layers.py:1057: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.
Instructions for updating:
Please use `layer.__call__` method instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\anchor_generator.py:171: The name tf.assert_equal is deprecated. Please use tf.compat.v1.assert_equal instead.
W0221 14:54:25.537888 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\anchor_generator.py:171: The name tf.assert_equal is deprecated. Please use tf.compat.v1.assert_equal instead.
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:25.571904 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:25.629889 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:25.792891 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:25.897924 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:25.965897 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
INFO:tensorflow:depth of additional conv before box predictor: 0
I0221 14:54:26.022900 20664 convolutional_box_predictor.py:151] depth of additional conv before box predictor: 0
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\variables_helper.py:179: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.
W0221 14:54:26.083904 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\variables_helper.py:179: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\variables_helper.py:139: The name tf.train.NewCheckpointReader is deprecated. Please use tf.compat.v1.train.NewCheckpointReader instead.
W0221 14:54:26.092905 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\variables_helper.py:139: The name tf.train.NewCheckpointReader is deprecated. Please use tf.compat.v1.train.NewCheckpointReader instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:353: The name tf.train.init_from_checkpoint is deprecated. Please use tf.compat.v1.train.init_from_checkpoint instead.
W0221 14:54:26.112903 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:353: The name tf.train.init_from_checkpoint is deprecated. Please use tf.compat.v1.train.init_from_checkpoint instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\box_coders\faster_rcnn_box_coder.py:82: The name tf.log is deprecated. Please use tf.math.log instead.
W0221 14:54:27.090950 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\box_coders\faster_rcnn_box_coder.py:82: The name tf.log is deprecated. Please use tf.math.log instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:1163: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W0221 14:54:31.650128 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:1163: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\losses.py:177: The name tf.losses.huber_loss is deprecated. Please use tf.compat.v1.losses.huber_loss instead.
W0221 14:54:31.671136 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\losses.py:177: The name tf.losses.huber_loss is deprecated. Please use tf.compat.v1.losses.huber_loss instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\losses.py:183: The name tf.losses.Reduction is deprecated. Please use tf.compat.v1.losses.Reduction instead.
W0221 14:54:31.687131 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\core\losses.py:183: The name tf.losses.Reduction is deprecated. Please use tf.compat.v1.losses.Reduction instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:1275: The name tf.get_collection is deprecated. Please use tf.compat.v1.get_collection instead.
W0221 14:54:32.229158 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\meta_architectures\ssd_meta_arch.py:1275: The name tf.get_collection is deprecated. Please use tf.compat.v1.get_collection instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:380: The name tf.train.get_or_create_global_step is deprecated. Please use tf.compat.v1.train.get_or_create_global_step instead.
W0221 14:54:32.244153 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:380: The name tf.train.get_or_create_global_step is deprecated. Please use tf.compat.v1.train.get_or_create_global_step instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\learning_schedules.py:66: The name tf.train.exponential_decay is deprecated. Please use tf.compat.v1.train.exponential_decay instead.
W0221 14:54:32.251151 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\utils\learning_schedules.py:66: The name tf.train.exponential_decay is deprecated. Please use tf.compat.v1.train.exponential_decay instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\optimizer_builder.py:47: The name tf.train.RMSPropOptimizer is deprecated. Please use tf.compat.v1.train.RMSPropOptimizer instead.
W0221 14:54:32.275160 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\builders\optimizer_builder.py:47: The name tf.train.RMSPropOptimizer is deprecated. Please use tf.compat.v1.train.RMSPropOptimizer instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:398: The name tf.trainable_variables is deprecated. Please use tf.compat.v1.trainable_variables instead.
W0221 14:54:32.295315 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:398: The name tf.trainable_variables is deprecated. Please use tf.compat.v1.trainable_variables instead.
WARNING:tensorflow:From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\training\rmsprop.py:119: calling Ones.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0221 14:54:34.404417 20664 deprecation.py:506] From C:\Users\horakm\AppData\Local\Continuum\miniconda3\envs\tf1_env\lib\site-packages\tensorflow_core\python\training\rmsprop.py:119: calling Ones.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:515: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0221 14:54:39.789619 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:515: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:519: The name tf.add_to_collection is deprecated. Please use tf.compat.v1.add_to_collection instead.
W0221 14:54:40.400641 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:519: The name tf.add_to_collection is deprecated. Please use tf.compat.v1.add_to_collection instead.
WARNING:tensorflow:From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:520: The name tf.train.Scaffold is deprecated. Please use tf.compat.v1.train.Scaffold instead.
W0221 14:54:40.408642 20664 module_wrapper.py:139] From C:\Users\horakm\PyCharmProjects\YoutubeTut\models\research\object_detection\model_lib.py:520: The name tf.train.Scaffold is deprecated. Please use tf.compat.v1.train.Scaffold instead.
INFO:tensorflow:Done calling model_fn.
I0221 14:54:40.414644 20664 estimator.py:1150] Done calling model_fn.
INFO:tensorflow:Create CheckpointSaverHook.
I0221 14:54:40.421664 20664 basic_session_run_hooks.py:541] Create CheckpointSaverHook.
INFO:tensorflow:Graph was finalized.
I0221 14:54:44.015785 20664 monitored_session.py:240] Graph was finalized.
2020-02-21 14:54:44.019506: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
INFO:tensorflow:Running local_init_op.
I0221 14:54:47.485972 20664 session_manager.py:500] Running local_init_op.
INFO:tensorflow:Done running local_init_op.
I0221 14:54:47.958948 20664 session_manager.py:502] Done running local_init_op.
INFO:tensorflow:Saving checkpoints for 0 into C:\Users\horakm\PyCharmProjects\YoutubeTut\assets\pets\training_output\out_1\model.ckpt.
I0221 14:54:57.284323 20664 basic_session_run_hooks.py:606] Saving checkpoints for 0 into C:\Users\horakm\PyCharmProjects\YoutubeTut\assets\pets\training_output\out_1\model.ckpt.
My virtual enviroment with package versions:
Package Version
-------------------- -------------------
-umpy 1.18.1
absl-py 0.9.0
astor 0.8.1
attrs 19.3.0
backcall 0.1.0
bleach 3.1.0
cachetools 4.0.0
certifi 2019.11.28
chardet 3.0.4
colorama 0.4.3
contextlib2 0.6.0.post1
cycler 0.10.0
Cython 0.29.15
decorator 4.4.1
defusedxml 0.6.0
entrypoints 0.3
gast 0.2.2
google-auth 1.11.0
google-auth-oauthlib 0.4.1
google-pasta 0.1.8
grpcio 1.27.1
h5py 2.10.0
idna 2.8
importlib-metadata 1.5.0
ipykernel 5.1.4
ipython 7.12.0
ipython-genutils 0.2.0
ipywidgets 7.5.1
jedi 0.16.0
Jinja2 2.11.1
json5 0.9.1
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 5.3.4
jupyter-console 6.1.0
jupyter-core 4.6.2
jupyterlab 1.2.6
jupyterlab-server 1.0.6
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.0
kiwisolver 1.1.0
lxml 4.5.0
Markdown 3.2
MarkupSafe 1.1.1
matplotlib 3.1.3
mistune 0.8.4
mkl-fft 1.0.15
mkl-random 1.1.0
mkl-service 2.3.0
nbconvert 5.6.1
nbformat 5.0.4
notebook 6.0.3
numpy 1.16.4
oauthlib 3.1.0
object-detection 0.1
opt-einsum 3.1.0
pandas 1.0.1
pandocfilters 1.4.2
parso 0.6.1
pickleshare 0.7.5
Pillow 7.0.0
pip 20.0.2
prometheus-client 0.7.1
prompt-toolkit 3.0.3
protobuf 3.11.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycocotools 2.0
Pygments 2.5.2
pyparsing 2.4.6
pyrsistent 0.15.7
python-dateutil 2.8.1
pytz 2019.3
pywin32 227
pywinpty 0.5.7
pyzmq 18.1.1
qtconsole 4.6.0
requests 2.22.0
requests-oauthlib 1.3.0
rsa 4.0
scipy 1.4.1
Send2Trash 1.5.0
setuptools 45.2.0.post20200210
six 1.14.0
tensorboard 1.15.0
tensorflow 1.15.2
tensorflow-estimator 1.15.1
termcolor 1.1.0
terminado 0.8.3
testpath 0.4.4
tornado 6.0.3
traitlets 4.3.3
urllib3 1.25.8
wcwidth 0.1.8
webencodings 0.5.1
Werkzeug 1.0.0
wheel 0.34.2
widgetsnbextension 3.5.1
wincertstore 0.2
wrapt 1.11.2
zipp 2.2.0
What might cause it? It is driving me crazy !!! :D
You know the Deadlock issue it so hard to reproduce however you log doesn't show significant information for me but you can first check
the TF record data and labeling and make sure every object is labeled correctly and no object exceed the Image height or width and images to be with minimum sizes 33*33 px ,
through my experience i were't sucking while using my CPU
let me know if i can help you more good luck , l was feeling your felling :D Good luck my friend
I somehow managed to solve that issue by doing random things like:
-
remove unused software - eliminate conflict with other programs
-
update cuda, cudnn, gpu driver, windows - eliminate software-side issues
-
maybe reinstall python and all of nessesary libs - eliminate some modified lib issues
-
reinstall GPU power pin - maybe the power to the gpu is insufficent or the connection is unstable?
-
using smaller image size and reduce the batch size - eliminate vram issues
Hope some of these things can help everyone out of this issue, goodluck🤞
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.