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 'cudnn_lstm/opaque_kernel_saveable' refers to an Operation not in the graph." #3751

Open
LangR7 opened this issue Oct 19, 2022 · 5 comments

Comments

@LangR7
Copy link

LangR7 commented Oct 19, 2022

hi,I am using “deepspeech-0.9.3-checkpoint-zh-CN.tar.gz” to restore output_graph.pb。
when I use tf.compat.v1.train.import_meta_graph to load best_dev-408475.meta,I met this error:“”KeyError: "The name 'cudnn_lstm/opaque_kernel_saveable' refers to an Operation not in the graph."
my tensorflow version is 1.15.4
thanks for your help

@Adorablepet
Copy link

@LangR7 I also meet too. Have you resolved?Thanks.

@LangR7
Copy link
Author

LangR7 commented Nov 9, 2022

i use [pbmm_to_pb.py] (https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/mozilla-deepspeech-0.8.2/pbmm_to_pb.py)
convert pbmm to pb

@Adorablepet
Copy link

Adorablepet commented Nov 10, 2022

i use [pbmm_to_pb.py] (https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/mozilla-deepspeech-0.8.2/pbmm_to_pb.py) convert pbmm to pb

我有个疑问:pbmm_to_pb.py只是转换英文数据集下训练的模型,虽然运行中文数据集模型时候代码没有报错。但是我看了下维度是29,如果是中文的话肯定不止,不知道你有没有注意到这点。

@LangR7
Copy link
Author

LangR7 commented Nov 13, 2022

i use [pbmm_to_pb.py] (https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/mozilla-deepspeech-0.8.2/pbmm_to_pb.py) convert pbmm to pb

我有个疑问:pbmm_to_pb.py只是转换英文数据集下训练的模型,虽然运行中文数据集模型时候代码没有报错。但是我看了下维度是29,如果是中文的话肯定不止,不知道你有没有注意到这点。

是的啊,可是这个也可以把deepspeech最新版本的CN模型从pbmm转成pb哇

@tailangjun
Copy link

下训练的模型,虽然运行中文数据集模型时候代码没有报错。但是我看了下维度是29,如果是中文的话肯定不止,不知道你有没有注意到这点。

deepspeech-0.9.3-zh会报错,貌似维度做了调整
Tensor("deepspeech/logits:0", shape=(16, 1, 256), dtype=float32)
ValueError: Cannot feed value of shape (1, 240, 494) for Tensor 'deepspeech/input_node:0', which has shape '(1, 16, 19, 26)'

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

3 participants