Giter VIP home page Giter VIP logo

Comments (3)

halbaqshi avatar halbaqshi commented on September 24, 2024

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.

halbaqshi avatar halbaqshi commented on September 24, 2024

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.

halbaqshi avatar halbaqshi commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.