python3 DeepSpeech.py --checkpoint_dir /home/nikhil/DeepSpeech-transfer-learning2/deepspeech-0.5.0-checkpoint/ --epoch 1 --train_files /home/nikhil/Desktop/train1.csv --test_files /home/nikhil/Desktop/test1.csv --dev_files /home/nikhil/Desktop/dev.csv --alphabet /home/nikhil/Desktop/hindi_alphabet.txt --export_dir /home/nikhil/Desktop/
WARNING: Logging before flag parsing goes to stderr.
W0210 16:46:20.231066 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:884: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
W0210 16:46:20.255008 140318949906240 deprecation_wrapper.py:119] From /home/nikhil/DeepSpeech-transfer-learning2/util/config.py:60: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
W0210 16:46:20.256026 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:866: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.
W0210 16:46:20.256174 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:867: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.
W0210 16:46:20.419441 140318949906240 deprecation.py:323] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/data/ops/dataset_ops.py:494: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, there are two
options available in V2.
- tf.py_function takes a python function which manipulates tf eager
tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
an ndarray (just call tensor.numpy()) but having access to eager tensors
means `tf.py_function`s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
- tf.numpy_function maintains the semantics of the deprecated tf.py_func
(it is not differentiable, and manipulates numpy arrays). It drops the
stateful argument making all functions stateful.
W0210 16:46:20.448142 140318949906240 deprecation_wrapper.py:119] From /home/nikhil/DeepSpeech-transfer-learning2/util/feeding.py:44: The name tf.read_file is deprecated. Please use tf.io.read_file instead.
W0210 16:46:20.504619 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:389: The name tf.data.Iterator is deprecated. Please use tf.compat.v1.data.Iterator instead.
W0210 16:46:20.504805 140318949906240 deprecation.py:323] From DeepSpeech.py:389: DatasetV1.output_types (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_types(dataset)`.
W0210 16:46:20.504961 140318949906240 deprecation.py:323] From DeepSpeech.py:390: DatasetV1.output_shapes (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_shapes(dataset)`.
W0210 16:46:20.505082 140318949906240 deprecation.py:323] From DeepSpeech.py:391: DatasetV1.output_classes (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_classes(dataset)`.
W0210 16:46:20.507122 140318949906240 deprecation.py:323] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py:348: Iterator.output_types (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_types(iterator)`.
W0210 16:46:20.507293 140318949906240 deprecation.py:323] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py:349: Iterator.output_shapes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_shapes(iterator)`.
W0210 16:46:20.507420 140318949906240 deprecation.py:323] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py:351: Iterator.output_classes (from tensorflow.python.data.ops.iterator_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.compat.v1.data.get_output_classes(iterator)`.
W0210 16:46:20.611987 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:415: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
W0210 16:46:20.615381 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:208: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
W0210 16:46:20.725610 140318949906240 deprecation.py:506] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/ops/init_ops.py:1251: calling VarianceScaling.__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
W0210 16:46:21.559910 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:189: The name tf.nn.ctc_loss is deprecated. Please use tf.compat.v1.nn.ctc_loss instead.
W0210 16:46:21.591238 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:285: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W0210 16:46:21.619580 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:344: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
W0210 16:46:21.644130 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:437: The name tf.train.get_or_create_global_step is deprecated. Please use tf.compat.v1.train.get_or_create_global_step instead.
W0210 16:46:21.686030 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:441: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
W0210 16:46:21.686893 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:443: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
W0210 16:46:21.687747 140318949906240 deprecation_wrapper.py:119] From DeepSpeech.py:448: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0210 16:46:21.765034 140318949906240 deprecation.py:323] From /home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
I0210 16:46:21.766776 140318949906240 saver.py:1280] Restoring parameters from /home/nikhil/DeepSpeech-transfer-learning2/deepspeech-0.5.0-checkpoint/train-484525
E Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
E
E Assign requires shapes of both tensors to match. lhs shape= [102] rhs shape= [29]
E [[node save/Assign_12 (defined at DeepSpeech.py:448) ]]
E
E Errors may have originated from an input operation.
E Input Source operations connected to node save/Assign_12:
E layer_6/bias/Adam (defined at DeepSpeech.py:438)
E
E Original stack trace for 'save/Assign_12':
E File "DeepSpeech.py", line 884, in <module>
E tf.app.run(main)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 40, in run
E _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/absl/app.py", line 300, in run
E _run_main(main, args)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/absl/app.py", line 251, in _run_main
E sys.exit(main(argv))
E File "DeepSpeech.py", line 868, in main
E train()
E File "DeepSpeech.py", line 448, in train
E checkpoint_saver = tf.train.Saver(max_to_keep=FLAGS.max_to_keep)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 825, in __init__
E self.build()
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 837, in build
E self._build(self._filename, build_save=True, build_restore=True)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 875, in _build
E build_restore=build_restore)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 508, in _build_internal
E restore_sequentially, reshape)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saver.py", line 350, in _AddRestoreOps
E assign_ops.append(saveable.restore(saveable_tensors, shapes))
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/training/saving/saveable_object_util.py", line 72, in restore
E self.op.get_shape().is_fully_defined())
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/ops/state_ops.py", line 227, in assign
E validate_shape=validate_shape)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 66, in assign
E use_locking=use_locking, name=name)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
E op_def=op_def)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
E return func(*args, **kwargs)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3616, in create_op
E op_def=op_def)
E File "/home/nikhil/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 2005, in __init__
E self._traceback = tf_stack.extract_stack()
E
E The checkpoint in /home/nikhil/DeepSpeech-transfer-learning2/deepspeech-0.5.0-checkpoint/train-484525 does not match the shapes of the model. Did you change alphabet.txt or the --n_hidden parameter between train runs using the same checkpoint dir? Try moving or removing the contents of /home/nikhil/DeepSpeech-transfer-learning2/deepspeech-0.5.0-checkpoint/train-484525.