AttributeError: 'exceptions.RuntimeError' object has no attribute 'split'
Hi, I am seeing an error while running DeepSpeech with the export directory set.
D Epochs - running: 0, done: 9
D Closing queues...
D Queues closed.
D Session closed.
D Done.
I Exporting the model...
2017-11-23 11:07:57.736719: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1045] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K80, pci bus id: 0000:00:1e.0)
I Restored checkpoint at training epoch 4701
WARNING:tensorflow:From DeepSpeech.py:1687: generic_signature (from tensorflow.contrib.session_bundle.exporter) is deprecated and will be removed after 2017-06-30.
Instructions for updating:
No longer supported. Switch to SavedModel immediately.
WARNING:tensorflow:From DeepSpeech.py:1689: generic_signature (from tensorflow.contrib.session_bundle.exporter) is deprecated and will be removed after 2017-06-30.
Instructions for updating:
No longer supported. Switch to SavedModel immediately.
WARNING:tensorflow:From DeepSpeech.py:1689: init (from tensorflow.contrib.session_bundle.exporter) is deprecated and will be removed after 2017-06-30.
Instructions for updating:
No longer supported. Switch to SavedModel immediately.
WARNING:tensorflow:From DeepSpeech.py:1697: export (from tensorflow.contrib.session_bundle.exporter) is deprecated and will be removed after 2017-06-30.
Instructions for updating:
No longer supported. Switch to SavedModel immediately.
Traceback (most recent call last):
File "DeepSpeech.py", line 1769, in
Any idea what is causing it? Thanks ravi
What arguments did you pass to DeepSpeech.py?
Ok.. It went away. Looks like it was caused because there was an earlier model stored in the exports folder, but i did not set the remove_export True. I removed the earlier exported model from the directory, and the error went away.
Looks like that is the reason.. if version number is not changed, and remove attribute is not set, it throws an error. Maybe this could be dealt with by setting exported model version number automatically if remove_export is not set to True? Thanks a lot
E Overwriting exports can cause corruption and are not allowed. Duplicate export dir: models/00000001
Perhaps there should be if FLAGS.remove_export and FLAGS.remove_export dir is NOT empty check and stop the program earlier, maybe after initialize_globals()?
As @zemravi suggests, supporting --export_version=auto and incrementing the number automatically would be nice.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.