Ifan24 / GPT_subtitles

Download YouTube video (or supply your own) and generate dual languange subtitles with OpenAI Whisper and translation API (GPT) 下载 YouTube 视频(或提供您自己的视频)并使用 Whisper 和翻译API (GPT) 生成双语字幕
MIT License
83 stars 16 forks source link

This CTranslate2 package was not compiled with CUDA support 请问这是什么原因 #6

Closed EarlySummer2018 closed 8 months ago

EarlySummer2018 commented 8 months ago

lib3/issues/3020 warnings.warn( Local video file: https://www.youtube.com/watch?v=UYT2CikcS8I Traceback (most recent call last): File "/Applications/APP/GPT_subtitles.git/main.py", line 347, in subtitle_processor.process(args.no_transcribe) File "/Applications/APP/GPT_subtitles.git/main.py", line 292, in process transcript, srt_file = self.transcribe_audio() File "/Applications/APP/GPT_subtitles.git/main.py", line 143, in transcribe_audio model = WhisperModel(self.model, device="cuda", compute_type="float16") File "/Users/huang/Library/Python/3.9/lib/python/site-packages/faster_whisper/transcribe.py", line 130, in init self.model = ctranslate2.models.Whisper( ValueError: This CTranslate2 package was not compiled with CUDA support

Ifan24 commented 8 months ago

我试了下colab的版本似乎没遇上这个错误 https://colab.research.google.com/drive/1XDLFlgew9BzUqNpTv_kq0HNocTNOSekP?usp=sharing

用whisper来识别语音需要用到GPU,如果有了GPU还是有这个错误,可以试一下重装 faster_whisper pip uninstall faster_whisper pip install faster_whisper

EarlySummer2018 commented 8 months ago

我试了下colab的版本似乎没遇上这个错误 https://colab.research.google.com/drive/1XDLFlgew9BzUqNpTv_kq0HNocTNOSekP?usp=sharing

用whisper来识别语音需要用到GPU,如果有了GPU还是有这个错误,可以试一下重装 faster_whisper pip uninstall faster_whisper pip install faster_whisper

你的python版本是什么

Ifan24 commented 8 months ago

Python 3.10.12