-
Notifications
You must be signed in to change notification settings - Fork 246
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
missing predict.py #29
Comments
There's none such file. But it can be done manually:
https://github.com/hcchengithub/tensorflow_speech_recognition_demo |
Should it be something like this. Im only guessing because I don't how to build up model variable. kindly correct me if im wrong. `from future import division, print_function, absolute_import learning_rate = 0.0001 width = 20 # mfcc features batch = word_batch = speech_data.mfcc_batch_generator(batch_size) net = tflearn.input_data([None, width, height]) col = tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES) model = tflearn.DNN(net, tensorboard_verbose=0) |
No, you need to know how to use tflearn's model.save() and model.load() to save-restore your trained networks. You need to complete training your model, get the saved network so you don't need to do the training every time when you only want to try some predicts. They are not difficult. Just do it correctly and you can make it. My snippet assumes that you have the saved network already and start from there shows you how to do the prediction. |
Thanks @hcchengithub , one last question how do you instantiate model variable in your code snippet? I've tried to look at it and i arrive on this https://stackoverflow.com/questions/45099608/tflearn-issue-over-model-load?answertab=active#tab-top. Or am i doing it wrong. Im so naive that i don't know how to load previously saved model of tflearn. Hope you can help me with this :). i'll try to dig more if i can find answers myself, it seems to be so obvious to the person who already done loading of a saved model but for a person who haven't done it yet is really vague. |
This demo is not really suitable for totally new comers. It's uncompleted ,incorrect and useless, really. |
Hi @hcchengithub , were you able to run the code? I am having this error: |
I wonder where is predict.py file that was mention in https://www.youtube.com/watch?v=u9FPqkuoEJ8 at 6:41 of the video
The text was updated successfully, but these errors were encountered: