Skip to content

KeyError: "The name 'deepspeech/input_node:0' refers to a Tensor which does not exist. The operation, 'deepspeech/input_node', does not exist in the graph." #134

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

Open
sambaPython24 opened this issue May 6, 2025 · 0 comments

Comments

@sambaPython24
Copy link

When trying to run the example, I get the error.

Traceback (most recent call last):
  File "path_to_voca_env/voca_env/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3618, in _as_graph_element_locked
    op = self._get_operation_by_name(op_name)
KeyError: ''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "run_voca.py", line 59, in <module>
    inference(tf_model_fname, ds_fname, audio_fname, template_fname, condition_idx, out_path, str2bool(args.visualize), uv_template_fname=uv_template_fname, texture_img_fname=texture_img_fname)
  File "path_to_voca/voca/voca/utils/inference.py", line 109, in inference
    processed_audio = process_audio(ds_fname, audio, sample_rate)
  File "path_to_voca/voca/voca/utils/inference.py", line 43, in process_audio
    return audio_handler.process(tmp_audio)['subj']['seq']['audio']
  File "path_to_voca/voca/voca/utils/audio_handler.py", line 53, in process
    return self.convert_to_deepspeech(audio)
  File "path_to_voca/voca/voca/utils/audio_handler.py", line 102, in convert_to_deepspeech
    input_tensor = graph.get_tensor_by_name('deepspeech/input_node:0')
  File "path_to_voca/voca_env/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3723, in get_tensor_by_name
    return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
  File "path_to_voca_env/voca_env/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3580, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "path_to_voca_env/voca_env/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3620, in _as_graph_element_locked
    raise KeyError(
KeyError: "The name 'deepspeech/input_node:0' refers to a Tensor which does not exist. The operation, 'deepspeech/input_node', does not exist in the graph."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant