Home > other >  Using a script to run the slim train_image_classifier. Py files
Using a script to run the slim train_image_classifier. Py files

Time:01-09

Using a script to run the slim train_image_classifier. Py files, run is resnet problems following
 INFO: tensorflow: Error reported to the Coordinator: & lt; Class 'tensorflow. Python. Framework. Errors_impl. NotFoundError' & gt; , Key resnet_v1_50/block1/unit_1/bottleneck_v1/conv1/BatchNorm/beta not found in: 
[[Node: save/RestoreV2=RestoreV2 [dtypes=[DT_INT64 DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT,..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/task/job: localhost/up: 0:0/device: CPU: 0"] (_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Under Caused by op 'save/RestoreV2, defined at:
The File "/home/yizhangbiao/PycharmProjects/resnet/slim/train_image_classifier py", line 581, in & lt; module>
Tf. The app. The run ()
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/platform/app. Py", line 126, in the run
_sys. Exit (main (argv))
The File "/home/yizhangbiao/PycharmProjects/resnet/slim/train_image_classifier py", line 577, the main in
Sync_optimizer=optimizer if FLAGS. Sync_replicas else None)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/contrib/slim/python/slim/learning. Py", line 658, "train" in
Saver=saver or tf_saver. Saver ()
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 1311, in __init__
The self. The build ()
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 1320, in the build
Self. _build (self. _filename build_save=True, build_restore=True)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 1357, in _build
Build_save=build_save, build_restore=build_restore)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 809, in _build_internal
Restore_sequentially, reshape)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 448, in _AddRestoreOps
Restore_sequentially)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/training/saver. Py", line 860, in bulk_restore
Return io_ops. Restore_v2 (filename_tensor, names, slices, dtypes)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/ops/gen_io_ops py", line 1458, in restore_v2
Shape_and_slices=shape_and_slices, dtypes=dtypes, name=name)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/framework/op_def_library py", line 787, in _apply_op_helper
Op_def=op_def)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/framework/ops. Py", line 3290, in create_op
Op_def=op_def)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/framework/ops. Py", line 1654, in __init__
Self. _traceback=self. _graph. _extract_stack () # pylint: disable=protected - access

NotFoundError (see above for traceback) : Key resnet_v1_50/block1/unit_1/bottleneck_v1/conv1/BatchNorm/beta not found in:
[[Node: save/RestoreV2=RestoreV2 [dtypes=[DT_INT64 DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT,..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/task/job: localhost/up: 0:0/device: CPU: 0"] (_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Traceback (the most recent call last) :
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/client/session. Py", line 1327, in _do_call
Return fn (* args)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/client/session. Py", line 1312, in _run_fn
The options, feed_dict fetch_list target_list, run_metadata)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/client/session. Py", line 1420, in _call_tf_sessionrun
The status, run_metadata)
The File "/home/yizhangbiao/anaconda3/envs/tensorflow/lib/python3.6/site - packages/tensorflow/python/framework/errors_impl py", line 516, in __exit__
C_api. TF_GetCode (self. Status. Status))
Tensorflow. Python. Framework. Errors_impl. NotFoundError: Key resnet_v1_50/block1/unit_1/bottleneck_v1/conv1/BatchNorm/beta not found in:
[[Node: save/RestoreV2=RestoreV2 [dtypes=[DT_INT64 DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT,..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/task/job: localhost/up: 0:0/device: CPU: 0"] (_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

During handling of the above exception, another exception occurred:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related