First, I just want to thank you two for offering so much of your time to help the community, really do appreciate it.
@lissyx, you’re right. Regarding git-lfs, I’ve been able to get through that issue by following your suggestion on https://github.com/mozilla/DeepSpeech/issues/871. Regarding your second comment, I agree. I’ve taken detailed notes on every command executed during the setup, I’ll gladly share – needs to be cleaned up a bit.
@reuben, you’re right. I tried your suggestion to switch to tensorflow 1.14, and moved past that issue. It was a little confusing because in https://github.com/mozilla/DeepSpeech/issues/2297 it was discussed to downgrade to 1.13.1.
With those two issues resolved, I’ve now run into this:
#####################################
(deepspeech-venv) lee@lee-VirtualBox:~/tmp/DeepSpeech$ ./bin/run-ldc93s1.sh
-
[ ! -f DeepSpeech.py ]
-
[ ! -f data/ldc93s1/ldc93s1.csv ]
-
[ -d ]
-
python -c from xdg import BaseDirectory as xdg; print(xdg.save_data_path(“deepspeech/ldc93s1”))
-
checkpoint_dir=/home/lee/.local/share/deepspeech/ldc93s1
-
export CUDA_VISIBLE_DEVICES=0
-
python -u DeepSpeech.py --noshow_progressbar --train_files data/ldc93s1/ldc93s1.csv --test_files data/ldc93s1/ldc93s1.csv --train_batch_size 1 --test_batch_size 1 --n_hidden 100 --epochs 2 --checkpoint_dir /home/lee/.local/share/deepspeech/ldc93s1
WARNING:tensorflow:From DeepSpeech.py:836: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
WARNING:tensorflow:From /home/lee/tmp/DeepSpeech/util/config.py:60: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
W0925 13:53:28.754550 140202457278272 deprecation_wrapper.py:119] From /home/lee/tmp/DeepSpeech/util/config.py:60: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.
WARNING:tensorflow:From DeepSpeech.py:818: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.
W0925 13:53:28.759094 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:818: The name tf.reset_default_graph is deprecated. Please use tf.compat.v1.reset_default_graph instead.
WARNING:tensorflow:From DeepSpeech.py:819: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.
W0925 13:53:28.760723 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:819: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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.
W0925 13:53:28.790332 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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.
WARNING:tensorflow:From /home/lee/tmp/DeepSpeech/util/feeding.py:45: The name tf.read_file is deprecated. Please use tf.io.read_file instead.
W0925 13:53:28.843681 140202457278272 deprecation_wrapper.py:119] From /home/lee/tmp/DeepSpeech/util/feeding.py:45: The name tf.read_file is deprecated. Please use tf.io.read_file instead.
WARNING:tensorflow:From DeepSpeech.py:372: The name tf.data.Iterator is deprecated. Please use tf.compat.v1.data.Iterator instead.
W0925 13:53:28.932677 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:372: The name tf.data.Iterator is deprecated. Please use tf.compat.v1.data.Iterator instead.
WARNING:tensorflow:From DeepSpeech.py:372: 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)
.
W0925 13:53:28.935590 140202457278272 deprecation.py:323] From DeepSpeech.py:372: 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)
.
WARNING:tensorflow:From DeepSpeech.py:373: 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)
.
W0925 13:53:28.937879 140202457278272 deprecation.py:323] From DeepSpeech.py:373: 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)
.
WARNING:tensorflow:From DeepSpeech.py:374: 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)
.
W0925 13:53:28.938873 140202457278272 deprecation.py:323] From DeepSpeech.py:374: 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)
.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
W0925 13:53:28.943069 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
W0925 13:53:28.946621 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
W0925 13:53:28.948177 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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)
.
WARNING:tensorflow:From DeepSpeech.py:385: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
W0925 13:53:28.950698 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:385: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
WARNING:tensorflow:From DeepSpeech.py:208: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
W0925 13:53:28.959286 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:208: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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
W0925 13:53:29.114466 140202457278272 deprecation.py:506] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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
WARNING:tensorflow:Entity <bound method LSTMBlockWrapper.call of <tensorflow.contrib.rnn.python.ops.lstm_ops.LSTMBlockFusedCell object at 0x7f83380b0ef0>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10
) and attach the full output. Cause: converting <bound method LSTMBlockWrapper.call of <tensorflow.contrib.rnn.python.ops.lstm_ops.LSTMBlockFusedCell object at 0x7f83380b0ef0>>: AttributeError: module ‘gast’ has no attribute ‘Num’
W0925 13:53:29.205372 140202457278272 ag_logging.py:145] Entity <bound method LSTMBlockWrapper.call of <tensorflow.contrib.rnn.python.ops.lstm_ops.LSTMBlockFusedCell object at 0x7f83380b0ef0>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10
) and attach the full output. Cause: converting <bound method LSTMBlockWrapper.call of <tensorflow.contrib.rnn.python.ops.lstm_ops.LSTMBlockFusedCell object at 0x7f83380b0ef0>>: AttributeError: module ‘gast’ has no attribute ‘Num’
WARNING:tensorflow:From DeepSpeech.py:189: The name tf.nn.ctc_loss is deprecated. Please use tf.compat.v1.nn.ctc_loss instead.
W0925 13:53:29.349265 140202457278272 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.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:1250: add_dispatch_support..wrapper (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
W0925 13:53:29.430233 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:1250: add_dispatch_support..wrapper (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 DeepSpeech.py:270: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W0925 13:53:29.646056 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:270: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
WARNING:tensorflow:From DeepSpeech.py:329: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
W0925 13:53:29.732506 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:329: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
WARNING:tensorflow:From DeepSpeech.py:407: The name tf.train.get_or_create_global_step is deprecated. Please use tf.compat.v1.train.get_or_create_global_step instead.
W0925 13:53:30.054653 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:407: 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 DeepSpeech.py:411: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
W0925 13:53:30.303706 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:411: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
WARNING:tensorflow:From DeepSpeech.py:413: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
W0925 13:53:30.306632 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:413: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
WARNING:tensorflow:From DeepSpeech.py:418: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0925 13:53:30.309255 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:418: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
WARNING:tensorflow:From /home/lee/tmp/deepspeech-venv/lib/python3.6/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.
W0925 13:53:30.446243 140202457278272 deprecation.py:323] From /home/lee/tmp/deepspeech-venv/lib/python3.6/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.
INFO:tensorflow:Restoring parameters from /home/lee/.local/share/deepspeech/ldc93s1/train-630
I0925 13:53:30.451196 140202457278272 saver.py:1280] Restoring parameters from /home/lee/.local/share/deepspeech/ldc93s1/train-630
WARNING:tensorflow:From DeepSpeech.py:354: The name tf.train.get_global_step is deprecated. Please use tf.compat.v1.train.get_global_step instead.
W0925 13:53:30.642319 140202457278272 deprecation_wrapper.py:119] From DeepSpeech.py:354: The name tf.train.get_global_step is deprecated. Please use tf.compat.v1.train.get_global_step instead.
I Restored variables from most recent checkpoint at /home/lee/.local/share/deepspeech/ldc93s1/train-630, step 630
I STARTING Optimization
I Training epoch 0…
I Finished training epoch 0 - loss: 0.043179
I Training epoch 1…
I Finished training epoch 1 - loss: 0.044449
I FINISHED optimization in 0:00:01.506567
Error: Trie file version mismatch (3 instead of expected 4). Update your trie file.
terminate called after throwing an instance of ‘int’
Fatal Python error: Aborted
Thread 0x00007f833227c700 (most recent call first):
File “/usr/lib/python3.6/threading.py”, line 295 in wait
File “/usr/lib/python3.6/queue.py”, line 164 in get
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/tensorflow/python/summary/writer/event_file_writer.py”, line 159 in run
File “/usr/lib/python3.6/threading.py”, line 916 in _bootstrap_inner
File “/usr/lib/python3.6/threading.py”, line 884 in _bootstrap
Thread 0x00007f8332a7d700 (most recent call first):
File “/usr/lib/python3.6/threading.py”, line 295 in wait
File “/usr/lib/python3.6/queue.py”, line 164 in get
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/tensorflow/python/summary/writer/event_file_writer.py”, line 159 in run
File “/usr/lib/python3.6/threading.py”, line 916 in _bootstrap_inner
File “/usr/lib/python3.6/threading.py”, line 884 in _bootstrap
Current thread 0x00007f836da9a740 (most recent call first):
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/ds_ctcdecoder/swigwrapper.py”, line 240 in init
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/ds_ctcdecoder/init.py”, line 23 in init
File “/home/lee/tmp/DeepSpeech/evaluate.py”, line 45 in evaluate
File “DeepSpeech.py”, line 554 in test
File “DeepSpeech.py”, line 824 in main
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/absl/app.py”, line 250 in _run_main
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/absl/app.py”, line 299 in run
File “/home/lee/tmp/deepspeech-venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py”, line 40 in run
File “DeepSpeech.py”, line 836 in
Aborted (core dumped)
#############################
I saw this being discussed on https://github.com/mozilla/DeepSpeech/issues/2206 so I am attempted to fix with suggested solution:
#############################
(deepspeech-venv) lee@lee-VirtualBox:~/tmp/DeepSpeech$ pip install --upgrade https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl
Collecting ds-ctcdecoder==0.6.0a0 from https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl
ERROR: HTTP error 404 while getting https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl
ERROR: Could not install requirement ds-ctcdecoder==0.6.0a0 from https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl because of error 404 Client Error: Not Found for url: https:://queue.taskcluster.net/v1/task/YnbB4UWaRfq7sdPhot3N0g/artifacts/public%2Fds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl
ERROR: Could not install requirement ds-ctcdecoder==0.6.0a0 from https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl because of HTTP error 404 Client Error: Not Found for url: https:://queue.taskcluster.net/v1/task/YnbB4UWaRfq7sdPhot3N0g/artifacts/public%2Fds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl for URL
https:://index.taskcluster.net/v1/task/project.deepspeech.deepspeech.native_client.master.cpu-ctc/artifacts/public/ds_ctcdecoder-0.6.0a0-cp36-cp36m-manylinux1_x86_64.whl
#############################
(I put :: for every : in https:// above because I can’t post anything witn more than 5 links)