coqui-ai / TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
http://coqui.ai
Mozilla Public License 2.0
31.64k stars 3.78k forks source link

[Bug] Official linked XTTS_v2 Google Colab throws: ibcublas.so.11 is not found #3779

Open flocked opened 3 weeks ago

flocked commented 3 weeks ago

Describe the bug

When using the Google Colab for XTTS_v2 that is linked in the official tutorial it throws an error after running the first two steps, opening the gradio UI via the public URL, uploading audio files and creating the dataset:

Library libcublas.so.11 is not found or cannot be loaded

To Reproduce

  1. Run the first two steps of the Google Colab
  2. Open the gradio UI via the public URL
  3. Upload audio files
  4. Create the dataset. It will throw the error listed in the log.

Expected behavior

No response

Logs

Loading Whisper Model! 2024-06-06 02:52:48,192 [INFO] Processing audio with duration 15:04.526 Traceback (most recent call last): File "/content/TTS/TTS/demos/xtts_ft_demo/xtts_demo.py", line 215, in preprocess_dataset train_meta, eval_meta, audio_total_size = format_audio_list(audio_path, target_language=language, out_path=out_path, gradio_progress=progress) File "/content/TTS/TTS/demos/xtts_ft_demo/utils/formatter.py", line 75, in format_audio_list segments = list(segments) File "/usr/local/lib/python3.10/dist-packages/faster_whisper/transcribe.py", line 426, in generate_segments encoder_output = self.encode(segment) File "/usr/local/lib/python3.10/dist-packages/faster_whisper/transcribe.py", line 610, in encode return self.model.encode(features, to_cpu=to_cpu) RuntimeError: Library libcublas.so.11 is not found or cannot be loaded

Environment

Google Colab: https://colab.research.google.com/drive/1GiI4_X724M8q2W-zZ-jXo7cWTV7RfaH-?usp=sharing
From official tutorial: https://docs.coqui.ai/en/stable/models/xtts.html

Additional context

No response

flocked commented 3 weeks ago

Adding the code !apt install libcublas11 solves the problem. pip install transformers -U has also be added to run the right version of it.

saifulislam79 commented 5 days ago

This is CUDA Driver issue, please check the driver 12.2 or other version. Make sure cuda version and this "libcublas.so.11" for cuda 12.2 and it CUDNN is 8.x.x.