So I switched to master and made sure all dependencies were installed. Was getting an attribute error from gast, but downgrading to 0.2.2 fixed that, but now the checkpoint loader is returning None.
I downloaded the checkpoint from the 0.6.0 release.
My command is
python DeepSpeech.py --checkpoint_dir ./model/deepspeech-0.6.0-checkpoint/ --export_tflite --export_dir ./model --lm ./model/lm.binary --trie ./model/trie
and the error:
I Exporting the model...
WARNING:tensorflow:From DeepSpeech.py:705: The name tf.nn.rnn_cell.LSTMStateTuple is deprecated. Please use tf.compat.v1.nn.rnn_cell.LSTMStateTuple instead.
W1220 11:01:21.922978 4594513344 deprecation_wrapper.py:119] From DeepSpeech.py:705: The name tf.nn.rnn_cell.LSTMStateTuple is deprecated. Please use tf.compat.v1.nn.rnn_cell.LSTMStateTuple instead.
WARNING:tensorflow:From DeepSpeech.py:131: LSTMCell.__init__ (from tensorflow.python.ops.rnn_cell_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This class is equivalent as tf.keras.layers.LSTMCell, and will be replaced by that in Tensorflow 2.0.
W1220 11:01:22.023649 4594513344 deprecation.py:323] From DeepSpeech.py:131: LSTMCell.__init__ (from tensorflow.python.ops.rnn_cell_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This class is equivalent as tf.keras.layers.LSTMCell, and will be replaced by that in Tensorflow 2.0.
WARNING:tensorflow:From DeepSpeech.py:141: static_rnn (from tensorflow.python.ops.rnn) is deprecated and will be removed in a future version.
Instructions for updating:
Please use `keras.layers.RNN(cell, unroll=True)`, which is equivalent to this API
W1220 11:01:22.108879 4594513344 deprecation.py:323] From DeepSpeech.py:141: static_rnn (from tensorflow.python.ops.rnn) is deprecated and will be removed in a future version.
Instructions for updating:
Please use `keras.layers.RNN(cell, unroll=True)`, which is equivalent to this API
WARNING:tensorflow:From /Users/mattc/anaconda3/envs/deepspeech/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
W1220 11:01:22.118990 4594513344 deprecation.py:506] From /Users/mattc/anaconda3/envs/deepspeech/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:From /Users/mattc/anaconda3/envs/deepspeech/lib/python3.6/site-packages/tensorflow/python/ops/rnn_cell_impl.py:961: calling Zeros.__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
W1220 11:01:22.144685 4594513344 deprecation.py:506] From /Users/mattc/anaconda3/envs/deepspeech/lib/python3.6/site-packages/tensorflow/python/ops/rnn_cell_impl.py:961: calling Zeros.__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
Traceback (most recent call last):
File "DeepSpeech.py", line 966, in <module>
absl.app.run(main)
File "/Users/mattc/anaconda3/envs/deepspeech/lib/python3.6/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/Users/mattc/anaconda3/envs/deepspeech/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "DeepSpeech.py", line 947, in main
export()
File "DeepSpeech.py", line 805, in export
checkpoint_path = checkpoint.model_checkpoint_path
AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'