Open epris opened 1 year ago
I have the same error. Any suggestions?
Hi. It seems that google colab changes its default environment, which leads to setup error. I will update the colab code ASAP. :( I am sorry that I am currently busy working on an academic project :(
Still the same issue
still the same issue
Prepare a new Colab notebook here. However, there are some artifacts in the VOCASET-template results due to the difference between the installed versions of packages and those in this repo/paper. It is hard to configure the environment in Colab to be the same as the one in this repo and I have tried my best.
Prepare a new Colab notebook here. However, there are some artifacts in the VOCASET-template results due to the difference between the installed versions of packages and those in this repo/paper. It is hard to configure the environment in Colab to be the same as the one in this repo and I have tried my best.
In new Colab notebook show:
!sh scripts/demo.sh vocaset
/content/CodeTalker Some weights of Wav2Vec2Model were not initialized from the model checkpoint at facebook/wav2vec2-base-960h and are newly initialized: ['wav2vec2.masked_spec_embed'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. => loading checkpoint 'vocaset/vocaset_stage2.pth.tar' => loaded checkpoint 'vocaset/vocaset_stage2.pth.tar' Generating facial animation for demo/wav/man.wav... 2024-03-20 12:34:40.717035: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-03-20 12:34:40.717087: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-03-20 12:34:40.718591: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-03-20 12:34:41.921161: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/CodeTalker/main/demo.py", line 219, in <module> main() File "/content/CodeTalker/main/demo.py", line 129, in main test(model, cfg.demo_wav_path, save_folder, condition, subject) File "/content/CodeTalker/main/demo.py", line 167, in test prediction = model.predict(audio_feature, template, one_hot) File "/content/CodeTalker/models/stage2.py", line 115, in predict hidden_states = self.audio_encoder(audio, self.dataset).last_hidden_state File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/content/CodeTalker/models/lib/wav2vec.py", line 132, in forward encoder_outputs = self.encoder( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/wav2vec2/modeling_wav2vec2.py", line 787, in forward position_embeddings = self.pos_conv_embed(hidden_states) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/wav2vec2/modeling_wav2vec2.py", line 399, in forward hidden_states = hidden_states.transpose(1, 2) IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)
!sh scripts/demo.sh BIWI
Some weights of Wav2Vec2Model were not initialized from the model checkpoint at facebook/wav2vec2-base-960h and are newly initialized: ['wav2vec2.masked_spec_embed'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. => loading checkpoint 'BIWI/biwi_stage2.pth.tar' => loaded checkpoint 'BIWI/biwi_stage2.pth.tar' Generating facial animation for demo/wav/man.wav... 2024-03-20 12:37:31.046308: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-03-20 12:37:31.046378: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-03-20 12:37:31.048398: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-03-20 12:37:32.752418: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT Traceback (most recent call last): File "/content/CodeTalker/main/demo.py", line 219, in <module> main() File "/content/CodeTalker/main/demo.py", line 129, in main test(model, cfg.demo_wav_path, save_folder, condition, subject) File "/content/CodeTalker/main/demo.py", line 167, in test prediction = model.predict(audio_feature, template, one_hot) File "/content/CodeTalker/models/stage2.py", line 115, in predict hidden_states = self.audio_encoder(audio, self.dataset).last_hidden_state File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/content/CodeTalker/models/lib/wav2vec.py", line 132, in forward encoder_outputs = self.encoder( File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/wav2vec2/modeling_wav2vec2.py", line 787, in forward position_embeddings = self.pos_conv_embed(hidden_states) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/usr/local/lib/python3.10/dist-packages/transformers/models/wav2vec2/modeling_wav2vec2.py", line 399, in forward hidden_states = hidden_states.transpose(1, 2) IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)
Hello, I'm trying to run the Colab online demo but I obtain different errors at the runtime 1)``` ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchdata 0.6.1 requires torch==2.0.1, but you have torch 1.11.0 which is incompatible. torchtext 0.15.2 requires torch==2.0.1, but you have torch 1.11.0 which is incompatible.
4)``` Traceback (most recent call last): File "/content/CodeTalker/main/demo.py", line 9, in
from transformers import Wav2Vec2Processor
ModuleNotFoundError: No module named 'transformers'