Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whisperx.load_model #767

Open
wwfcnu opened this issue Apr 2, 2024 · 1 comment
Open

whisperx.load_model #767

wwfcnu opened this issue Apr 2, 2024 · 1 comment

Comments

@wwfcnu
Copy link

wwfcnu commented Apr 2, 2024

Can whisperx.load_model load locally downloaded models?

@GroovyDan
Copy link

GroovyDan commented Apr 3, 2024

Yes just pass the local file path as the whisper_arch argument:

print(">> Loading VAD Model")
vad_model = whisperx.vad.load_vad_model(
    torch.device(DEVICE),
    model_fp=os.path.join(MODEL_DIR, VAD_FOLDER, VAD_FILE),
)
print(">> Loading Whisper Model")
asr_model = whisperx.load_model(
    os.path.join(MODEL_DIR, ASR_FOLDER),
    DEVICE,
    compute_type=COMPUTE_TYPE,
    language="en",
    vad_model=vad_model,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants