zhangchenxu528 / FACIAL

FACIAL: Synthesizing Dynamic Talking Face With Implicit Attribute Learning. ICCV, 2021.
GNU Affero General Public License v3.0
376 stars 83 forks source link

'deepspeech/input_node', does not exist in the graph #54

Closed muxiddin19 closed 2 years ago

muxiddin19 commented 2 years ago

Thanks for the great work. However, when I run the python audio_preprocessing.py code, I face error: Traceback (most recent call last): File "/home/ubuntu/muhiddin/FACIAL/audio2face/audio_preprocessing.py", line 61, in processed_audio = process_audio(ds_fname, audio4deepspeech, fps) # generate audio feature File "/home/ubuntu/muhiddin/FACIAL/audio2face/audio_preprocessing.py", line 39, in process_audio processed_audio = audio_handler.process(audio, fps) File "/home/ubuntu/muhiddin/FACIAL/audio2face/_utils/audio_handler.py", line 58, in process return self.convert_to_deepspeech(audio, fps) File "/home/ubuntu/muhiddin/FACIAL/audio2face/_utils/audio_handler.py", line 107, in convert_to_deepspeech input_tensor = graph.get_tensor_by_name('deepspeech/input_node:0') File "/home/ubuntu/anaconda3/envs/audio_face/lib/python3.10/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 "/home/ubuntu/anaconda3/envs/audio_face/lib/python3.10/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 "/home/ubuntu/anaconda3/envs/audio_face/lib/python3.10/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/input_node:0' refers to a Tensor which does not exist. The operation, 'deepspeech/input_node', does not exist in the graph." Can you give some solution for this issue?

muxiddin19 commented 2 years ago

I tried two different Linux GPU Servers but faced the same error. I use Tensorflow 2.4.1 and 2.8.0 simultaneously. Is it a cause for the problem? If yes, how to use Tensorflow 1. I could not install it due to the unavailability of the one. Please any suggestions?

zhangchenxu528 commented 2 years ago

Tensorflow 2.0 does have this problem, and I don't know how to fix it. If you just use it for research, you can simply preprocess the audio feature with Colab.

Arthurzhangsheng commented 1 year ago

Tensorflow 2.0 does have this problem, and I don't know how to fix it. If you just use it for research, you can simply preprocess the audio feature with Colab.

Unfortunately, the colab has no longer supported tf1. x since August this year, and the colab training program you provided can no longer run