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

推理报错是为什么呀 #28

Open
xiaoliu123881 opened this issue Oct 30, 2024 · 0 comments
Open

推理报错是为什么呀 #28

xiaoliu123881 opened this issue Oct 30, 2024 · 0 comments

Comments

@xiaoliu123881
Copy link

(dinet_opt) @jupiter:~/DINet-master$ python inference.py --mouth_region_size=256 --source_video_path=./asserts/examples/test1.mp4 --source_openface_landmark_path=./asserts/examples/test1.csv --driving_audio_path=./asserts/examples/driving_audio_1.wav --pretrained_clip_DINet_path=./asserts/clip_training_DINet_256mouth.pth
2024-10-30 20:44:13.664312: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2024-10-30 20:44:13.664409: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
extracting frames from video: ./asserts/examples/test1.mp4
warning: the input video is not 25 fps, it would be better to trans it to 25 fps!
extracting deepspeech feature from : ./asserts/examples/driving_audio_1.wav
Traceback (most recent call last):
File "/DINet-master/inference.py", line 44, in
DSModel = DeepSpeech(opt.deepspeech_model_path)
File "/DINet-master/utils/deep_speech.py", line 13, in init
= self._prepare_deepspeech_net(model_path)
File "/DINet-master/utils/deep_speech.py", line 22, in _prepare_deepspeech_net
logits_ph = graph.get_tensor_by_name("deepspeech/logits:0")
File "/.conda/envs/dinet_opt/lib/python3.9/site-packages/tensorflow/python/framework/ops.py", line 4150, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
File "/.conda/envs/dinet_opt/lib/python3.9/site-packages/tensorflow/python/framework/ops.py", line 3974, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/.conda/envs/dinet_opt/lib/python3.9/site-packages/tensorflow/python/framework/ops.py", line 4014, 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."

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