Skip to content
Discussion options

You must be logged in to vote

I changed the download_root to be a directory one level above the CWD, so it shouldn't be a problem. I've tried doing this:

model = whisper.load_model(
	name=get_whisper_model(duration),
	device='cuda',
	download_root=data,
	in_memory=True
)
text = model.transcribe(
	initial_prompt=prompt,
	audio=wav,
	fp16=has_cuda,
	language='en',
	#condition_on_previous_text=False,
	verbose=True,
	#word_timestamps=True
)['text'].strip()

And it's still happening. I've been able to fix it, but in order to do so I downloaded the files manually, then assigned the proper path as the name parameter. If you want to download the model one time, first call load_model effectively like a void statement. Then load…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@glangford
Comment options

@T145
Comment options

@glangford
Comment options

@T145
Comment options

Answer selected by T145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants