New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taking time for inference but returning 'none' #1316
Comments
Are you using the 0.1.1 version of Deep Speech to train with? |
yes. i have used that and also training has been complete. don't know how to proceed with testing |
So you trained using the sources in the 0.1.1 release zip, i.e. v0.1.1.zip? |
i have trained on common voice using the following command |
@arunimathappa What is you use the |
python DeepSpeech.py --one_shot_infer ../../home/clouduser/audio1.wav |
@arunimathappa Diy you also specify the |
after giving --checkpoint_dir , it is giving me the output but is not that accurate |
@arunimathappa Can you answer the template questions we provide for issues? This will help diagnose the problem. |
Linux RHEL7 deepspeech version is v0.1.1 error coming is it is returning none how to make it do the inference? also i am able to do the one_shot_inference |
@arunimathappa Did you train the model with 0.1.1 code or current master? |
i trained the model with 0.1.1 code |
@arunimathappa Why are you using |
Hi, @arunimathappa and @kdavis-mozilla I am getting exactly this error. Were you able to solve it? |
Hi @disha3, @arunimathappa, I am also getting the same error. Were you able to solve this problem? |
Using a newer binary for inference worked for me. #1344 |
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. |
i wanted to test my model. i have trained it on common voice and i get output_graph.pb in the exportdir i created.
on running the following command
[data]$ deepspeech ../../exportdir/output_graph.pb smoke_test/LDC93S1.wav alphabet.txt lm/lm.binary lm/trie
i am getting the following error
Loading model from file ../../exportdir/output_graph.pb
2018-03-26 12:24:04.117793: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: FMA
Loaded model in 0.235s.
Loading language model from files lm/lm.binary lm/trie
Loaded language model in 1.367s.
Running inference.
2018-03-26 12:24:09.156036: E tensorflow/core/framework/op_segment.cc:53] Create kernel failed: Invalid argument: NodeDef mentions attr 'identical_element_shapes' not in Op<name=TensorArrayV3; signature=size:int32 -> handle:resource, flow:float; attr=dtype:type; attr=element_shape:shape,default=; attr=dynamic_size:bool,default=false; attr=clear_after_read:bool,default=true; attr=tensor_array_name:string,default=""; is_stateful=true>; NodeDef: bidirectional_rnn/bw/bw/TensorArray_1 = TensorArrayV3clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,4096], identical_element_shapes=true, tensor_array_name="bidirectional_rnn/bw/bw/dynamic_rnn/input_0", _device="/job:localhost/replica:0/task:0/device:CPU:0". (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
2018-03-26 12:24:09.156140: E tensorflow/core/common_runtime/executor.cc:643] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'identical_element_shapes' not in Op<name=TensorArrayV3; signature=size:int32 -> handle:resource, flow:float; attr=dtype:type; attr=element_shape:shape,default=; attr=dynamic_size:bool,default=false; attr=clear_after_read:bool,default=true; attr=tensor_array_name:string,default=""; is_stateful=true>; NodeDef: bidirectional_rnn/bw/bw/TensorArray_1 = TensorArrayV3clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,4096], identical_element_shapes=true, tensor_array_name="bidirectional_rnn/bw/bw/dynamic_rnn/input_0", _device="/job:localhost/replica:0/task:0/device:CPU:0". (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
[[Node: bidirectional_rnn/bw/bw/TensorArray_1 = TensorArrayV3clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,4096], identical_element_shapes=true, tensor_array_name="bidirectional_rnn/bw/bw/dynamic_rnn/input_0", _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
Error running session: Invalid argument: NodeDef mentions attr 'identical_element_shapes' not in Op<name=TensorArrayV3; signature=size:int32 -> handle:resource, flow:float; attr=dtype:type; attr=element_shape:shape,default=; attr=dynamic_size:bool,default=false; attr=clear_after_read:bool,default=true; attr=tensor_array_name:string,default=""; is_stateful=true>; NodeDef: bidirectional_rnn/bw/bw/TensorArray_1 = TensorArrayV3clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,4096], identical_element_shapes=true, tensor_array_name="bidirectional_rnn/bw/bw/dynamic_rnn/input_0", _device="/job:localhost/replica:0/task:0/device:CPU:0". (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
[[Node: bidirectional_rnn/bw/bw/TensorArray_1 = TensorArrayV3clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,4096], identical_element_shapes=true, tensor_array_name="bidirectional_rnn/bw/bw/dynamic_rnn/input_0", _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
None
Inference took 3.452s for 2.925s audio file
what should i do?
The text was updated successfully, but these errors were encountered: