Comments (3)
I tried to modify the codes and variables. I got other error like below
save_checkpoint='../logs&checkpoint/Conv/ckpt-15300.index'
model_architecture='conv'
save_path=os.path.join(FLAGS.models_dir,model_architecture,'%s.pb'%os.path.basename(save_checkpoint))
freeze.freeze_graph(FLAGS,model_architecture,save_checkpoint,save_path)
Traceback (most recent call last):
File "", line 1, in
File "/home/hussain/Downloads/TF-Speech-Recognition-Challenge-Solution-master/libs/classification/freeze.py", line 150, in freeze_graph
# Create an output to use for inference.
File "/home/hussain/Downloads/TF-Speech-Recognition-Challenge-Solution-master/libs/classification/models.py", line 143, in load_variables_from_checkpoint
saver = tf.train.Saver(tf.global_variables())
File "/home/hussain/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1218, in init
self.build()
File "/home/hussain/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1227, in build
self._build(self._filename, build_save=True, build_restore=True)
File "/home/hussain/anaconda3/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1251, in _build
raise ValueError("No variables to save")
ValueError: No variables to save
from tf-speech-recognition-challenge-solution.
I fixed the previos error by changing the
decoded_sample_data=tf.reshape(decoded_sample_data,[shape=(model_settings['desired_samples']))
to
decoded_sample_data=tf.reshape(decoded_sample_data,[shape=(1600,1))
from tf-speech-recognition-challenge-solution.
also sometime I got this error
Traceback (most recent call last):
File "", line 1, in
File "/home/hussain/Downloads/TF-Speech-10words/libs/classification/freeze.py", line 165, in freeze_graph
FLAGS.dct_coefficient_count, model_architecture,model_size_info)
File "/home/hussain/Downloads/TF-Speech-10words/libs/classification/freeze.py", line 83, in create_inference_graph
decoded_sample_data.sample_rate,
AttributeError: 'Tensor' object has no attribute 'sample_rate'
if I changed decoded_sample_data to
decoded_sample_data=tf.reshape(decoded_sample_data,shape=([model_settings['desired_samples'],1]))
from tf-speech-recognition-challenge-solution.
Related Issues (12)
- no directory named "src" HOT 1
- TypeError: Cannot interpret feed_dict key as Tensor: The name 'train_mode:0' refers to a Tensor which does not exist. The operation, 'train_mode', does not exist in the graph.
- InvalidArgumentError: Unsuccessful TensorSliceReader constructor: Failed to get matching files on ../logs&checkpoint/lstm_l/ckpt-30000: Not found: ../logs&checkpoint/lstm_l; No such file or directory
- result file is missing HOT 5
- result file is still empty HOT 1
- requirment for using my data HOT 1
- Can I use your code for disabled speech recognithion HOT 1
- resent_model is missing HOT 1
- how to test my audio data after training completed? HOT 1
- ValueError: noverlap must be less than nperseg. HOT 1
- Error when i launch 1/2/3 options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-speech-recognition-challenge-solution.