WhisperX installation #362

Open
opened 2023-08-31 18:47:47 +00:00 by MrMustachio43 · 2 comments

How do i go about installing whisper x? i dont use docker or conda. I've tried installing the correct files into .\venv\Lib\site-packages, one by one as it errors in the corner. But i ran into a stump, as shown in the error

Traceback (most recent call last):
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
result = await self.call_function(
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\helpers.py", line 587, in tracked_fn
response = fn(*args)
File "D:\AI\ai-voice-cloning\src\webui.py", line 243, in prepare_dataset_proxy
message = transcribe_dataset( voice=voice, language=language, skip_existings=skip_existings, progress=progress )
File "D:\AI\ai-voice-cloning\src\utils.py", line 2226, in transcribe_dataset
load_whisper_model(language=language)
File "D:\AI\ai-voice-cloning\src\utils.py", line 3884, in load_whisper_model
elif args.whisper_backend == "lightmare/whispercpp":
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx_init_.py", line 1, in
from .transcribe import load_model
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx\transcribe.py", line 10, in
from .asr import load_model
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx\asr.py", line 6, in
import faster_whisper
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper_init_.py", line 2, in
from faster_whisper.transcribe import WhisperModel
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper\transcribe.py", line 78, in
class WhisperModel:
File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper\transcribe.py", line 371, in WhisperModel
encoder_output: Optional[ctranslate2.StorageView] = None,
AttributeError: module 'ctranslate2' has no attribute 'StorageView'

How do i go about installing whisper x? i dont use docker or conda. I've tried installing the correct files into .\venv\Lib\site-packages, one by one as it errors in the corner. But i ran into a stump, as shown in the error > Traceback (most recent call last): File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api result = await self.call_function( File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "D:\AI\ai-voice-cloning\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run result = context.run(func, *args) File "D:\AI\ai-voice-cloning\venv\lib\site-packages\gradio\helpers.py", line 587, in tracked_fn response = fn(*args) File "D:\AI\ai-voice-cloning\src\webui.py", line 243, in prepare_dataset_proxy message = transcribe_dataset( voice=voice, language=language, skip_existings=skip_existings, progress=progress ) File "D:\AI\ai-voice-cloning\src\utils.py", line 2226, in transcribe_dataset load_whisper_model(language=language) File "D:\AI\ai-voice-cloning\src\utils.py", line 3884, in load_whisper_model elif args.whisper_backend == "lightmare/whispercpp": File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx\__init__.py", line 1, in <module> from .transcribe import load_model File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx\transcribe.py", line 10, in <module> from .asr import load_model File "D:\AI\ai-voice-cloning\venv\lib\site-packages\whisperx\asr.py", line 6, in <module> import faster_whisper File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper\__init__.py", line 2, in <module> from faster_whisper.transcribe import WhisperModel File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper\transcribe.py", line 78, in <module> class WhisperModel: File "D:\AI\ai-voice-cloning\venv\lib\site-packages\faster_whisper\transcribe.py", line 371, in WhisperModel encoder_output: Optional[ctranslate2.StorageView] = None, AttributeError: module 'ctranslate2' has no attribute 'StorageView'
Owner
.\venv\Scripts\activate.bat
pip3 install git+https://github.com/m-bain/whisperX

is the basic way to do it, but you pretty much need to cross your fingers and hope that all the dependencies in align with one another and nothing breaks, as I've had it break venvs quite easily if it wasn't a very fresh clean install.

``` .\venv\Scripts\activate.bat pip3 install git+https://github.com/m-bain/whisperX ``` is the basic way to do it, but you pretty much need to cross your fingers and hope that all the dependencies in align with one another and nothing breaks, as I've had it break venvs quite easily if it wasn't a very fresh clean install.
Author

So, I did that. It says it 'built' whisperx, but it didn't work. Is there any other benefit besides being faster? otherwise i guess I can live without lol

also, no idea what's going on with that red error

So, I did that. It says it 'built' whisperx, but it didn't work. Is there any other benefit besides being faster? otherwise i guess I can live without lol also, no idea what's going on with that red error
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#362
No description provided.