{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1382","repository_url":"https://api.github.com/repos/mozilla/DeepSpeech","labels_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1382/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1382/comments","events_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1382/events","html_url":"https://github.com/mozilla/DeepSpeech/issues/1382","id":322497295,"node_id":"MDU6SXNzdWUzMjI0OTcyOTU=","number":1382,"title":"Cannot run the simplest example \"client.py\" : \"TypeError: Array must have 1 dimensions.  Given array has 2 dimensions\"","user":{"login":"Svito-zar","id":15908492,"node_id":"MDQ6VXNlcjE1OTA4NDky","avatar_url":"https://avatars1.githubusercontent.com/u/15908492?v=4","gravatar_id":"","url":"https://api.github.com/users/Svito-zar","html_url":"https://github.com/Svito-zar","followers_url":"https://api.github.com/users/Svito-zar/followers","following_url":"https://api.github.com/users/Svito-zar/following{/other_user}","gists_url":"https://api.github.com/users/Svito-zar/gists{/gist_id}","starred_url":"https://api.github.com/users/Svito-zar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Svito-zar/subscriptions","organizations_url":"https://api.github.com/users/Svito-zar/orgs","repos_url":"https://api.github.com/users/Svito-zar/repos","events_url":"https://api.github.com/users/Svito-zar/events{/privacy}","received_events_url":"https://api.github.com/users/Svito-zar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-12T09:32:58Z","updated_at":"2019-01-03T00:53:03Z","closed_at":"2018-05-20T13:27:18Z","author_association":"NONE","body":"- I have not written a custom code, I used a code which you provided as an example of usage by python : \"client.py\".\r\n\r\n- My OS Platform is Linux Ubuntu 16.04\r\n\r\n- My TensorFlow is 1.8.0 and was installed from upstream TensorFlow\r\n\r\n- My Python version is 3.5.2\r\n\r\n- I do not have CUDA on my machine, because I do not have external GPU.\r\n\r\n- **Exact command to reproduce**\r\n`python client.py /home/taras/Dropbox/GetSandwich/models/output_graph.pb /home/taras/Dropbox/GetSandwich/models/alphabet.txt /home/taras/Dropbox/GetSandwich/models/lm.binary /home/taras/Dropbox/GetSandwich/models/trie /home/taras/Dropbox/GetSandwich/Code/VideoProcessing/wisdom.wav`\r\n\r\nSo I just run the basic script you provide on my audio and I get the following error;\r\n\r\n> Loading model from file /home/taras/Dropbox/GetSandwich/models/output_graph.pb\r\n2018-05-12 11:31:33.903476: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\r\nLoaded model in 0.258s.\r\nLoading language model from files /home/taras/Dropbox/GetSandwich/models/lm.binary /home/taras/Dropbox/GetSandwich/models/trie\r\nLoaded language model in 0.891s.\r\nRunning inference.\r\nTraceback (most recent call last):\r\n  File \"asr_2.py\", line 97, in <module>\r\n    main()\r\n  File \"asr_2.py\", line 92, in main\r\n    print(ds.stt(audio, fs))\r\n  File \"/home/taras/tmp/deepspeech-venv/lib/python3.5/site-packages/deepspeech/model.py\", line 127, in stt\r\n    return _model.Model_stt(self, aBuffer, aSampleRate)\r\nTypeError: Array must have 1 dimensions.  Given array has 2 dimensions\r\n\r\nIt seems that there is an issue with the model you provide ...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/comments/451030724","html_url":"https://github.com/mozilla/DeepSpeech/issues/1382#issuecomment-451030724","issue_url":"https://api.github.com/repos/mozilla/DeepSpeech/issues/1382","id":451030724,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTAzMDcyNA==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-01-03T00:53:03Z","updated_at":"2019-01-03T00:53:03Z","author_association":"NONE","body":"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.\n"}}
{"actor":{"display_login":"lock"}}