Skip to content
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

KeyError: "The name 'deepspeech/logits:0' refers to a Tensor which does not exist. #69

Closed
FrancisChen888 opened this issue Dec 7, 2021 · 7 comments

Comments

@FrancisChen888
Copy link

While excute --- Step1: extract images from vids ---

Traceback (most recent call last):
File "data_util/deepspeech_features/extract_ds_features.py", line 128, in
main()
File "data_util/deepspeech_features/extract_ds_features.py", line 120, in main
extract_features(
File "data_util/deepspeech_features/extract_ds_features.py", line 80, in extract_features
conv_audios_to_deepspeech(
File "/data/chenxianhao/AD-NeRF/data_util/deepspeech_features/deepspeech_features.py", line 41, in conv_audios_to_deepspeech
graph, logits_ph, input_node_ph, input_lengths_ph = prepare_deepspeech_net(
File "/data/chenxianhao/AD-NeRF/data_util/deepspeech_features/deepspeech_features.py", line 105, in prepare_deepspeech_net
logits_ph = graph.get_tensor_by_name("deepspeech/logits:0")
File "/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3931, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
File "/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3755, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3795, in _as_graph_element_locked
raise KeyError("The name %s refers to a Tensor which does not "

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

@649459021
Copy link

Hey, What exactly did u do to resolve the issue?.

@sstzal
Copy link

sstzal commented Sep 29, 2022

Have you solved this problem?

@DuNGEOnmassster
Copy link

I wonder have you solved this problem too.

@flyingshan
Copy link

Downgrading tensorflow-gpu to 1.15.0 helped me solve this problem.

@Ela2Zofia
Copy link

Look for "logits:0" instead of "deepspeech/logits:0" will do the trick. This can be found after inspecting the name of all the nodes in the graph.

@rogerle
Copy link

rogerle commented Jul 19, 2023

tensorflow-gpu to 1.15.0 is right

@cucdengjunli
Copy link

mark

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

8 participants