{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/2048","repository_url":"https://api.github.com/repos/mozilla/DeepSpeech","labels_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/2048/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/2048/comments","events_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/2048/events","html_url":"https://github.com/mozilla/DeepSpeech/issues/2048","id":432414996,"node_id":"MDU6SXNzdWU0MzI0MTQ5OTY=","number":2048,"title":"InvalidArgumentError: Data too short when trying to read string","user":{"login":"kst5118","id":43393764,"node_id":"MDQ6VXNlcjQzMzkzNzY0","avatar_url":"https://avatars2.githubusercontent.com/u/43393764?v=4","gravatar_id":"","url":"https://api.github.com/users/kst5118","html_url":"https://github.com/kst5118","followers_url":"https://api.github.com/users/kst5118/followers","following_url":"https://api.github.com/users/kst5118/following{/other_user}","gists_url":"https://api.github.com/users/kst5118/gists{/gist_id}","starred_url":"https://api.github.com/users/kst5118/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kst5118/subscriptions","organizations_url":"https://api.github.com/users/kst5118/orgs","repos_url":"https://api.github.com/users/kst5118/repos","events_url":"https://api.github.com/users/kst5118/events{/privacy}","received_events_url":"https://api.github.com/users/kst5118/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":true,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-04-12T06:56:24Z","updated_at":"2019-10-08T13:39:26Z","closed_at":"2019-10-08T13:39:26Z","author_association":"NONE","body":"I just start training with my own datasets and got an error like this.\r\n\r\n + python -u DeepSpeech.py --train_files data/train.csv --dev_files data/dev.csv --test_files data/test.csv --train_batch_size 64 --dev_batch_size 64 --test_batch_size 16 --n_hidden 2048 --epoch 100 --validation_step 1 --early_stop True --earlystop_nsteps 6 --estop_mean_thresh 0.1 --estop_std_thresh 0.1 --dropout_rate 0.2 --learning_rate 0.0001 --report_count 100 --use_seq_length False --export_dir data/results/model_export/ --checkpoint_dir data/results/checkout/ --decoder_library_path native_client/libctc_decoder_with_kenlm.so --alphabet_config_path data/alphabet.txt --lm_binary_path data/lm/newKST4.binary --lm_trie_path data/lm/trie\r\nWARNING:tensorflow:From /home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/data/ops/dataset_ops.py:429: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\ntf.py_func is deprecated in TF V2. Instead, use\r\n    tf.py_function, which takes a python function which manipulates tf eager\r\n    tensors instead of numpy arrays. It's easy to convert a tf eager tensor to\r\n    an ndarray (just call tensor.numpy()) but having access to eager tensors\r\n    means `tf.py_function`s can use accelerators such as GPUs as well as\r\n    being differentiable using a gradient tape.\r\n    \r\nWARNING:tensorflow:From /home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/data/ops/iterator_ops.py:358: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nColocations handled automatically by placer.\r\nWARNING:tensorflow:From /home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/lstm_ops.py:696: to_int64 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse tf.cast instead.\r\nWARNING:tensorflow:From /home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/training/saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse standard file APIs to check for files with this prefix.\r\nI Restored variables from most recent checkpoint at data/results/checkout/train-8084, step 8085\r\nI STARTING Optimization\r\nEpoch 0 | Elapsed Time: 0:22:56 | Steps: 1453 | Loss: 18.195565                Traceback (most recent call last):\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1334, in _do_call\r\n    return fn(*args)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1319, in _run_fn\r\n    options, feed_dict, fetch_list, target_list, run_metadata)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1407, in _call_tf_sessionrun\r\n    run_metadata)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: Data too short when trying to read string\r\n\t [[{{node DecodeWav}}]]\r\n\t [[{{node tower_0/IteratorGetNext}}]]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"DeepSpeech.py\", line 833, in <module>\r\n    tf.app.run(main)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/platform/app.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"DeepSpeech.py\", line 817, in main\r\n    train()\r\n  File \"DeepSpeech.py\", line 511, in train\r\n    train_loss = run_set('train', train_init_op)\r\n  File \"DeepSpeech.py\", line 482, in run_set\r\n    feed_dict=feed_dict)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 929, in run\r\n    run_metadata_ptr)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1152, in _run\r\n    feed_dict_tensor, options, run_metadata)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1328, in _do_run\r\n    run_metadata)\r\n  File \"/home/kst/anaconda3/envs/tf/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1348, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: Data too short when trying to read string\r\n\t [[{{node DecodeWav}}]]\r\n\t [[node tower_0/IteratorGetNext (defined at DeepSpeech.py:182) ]]\r\n\r\n-----------------\r\nI have checked my wav files and removed short wav files (by the size of wav files).\r\nBut error still exists.\r\n\r\nPlease help me..Thank you in advance\r\n"}}
{"actor":{"display_login":"reuben"}}