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

AttributeError: type object 'TranscriptionOptions' has no attribute 'without_timestamps' #985

Open
sabuhigr opened this issue Jan 8, 2025 · 1 comment

Comments

@sabuhigr
Copy link

sabuhigr commented Jan 8, 2025

Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/cog/server/worker.py", line 646, in _handle_predict_error
yield
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/cog/server/worker.py", line 538, in _predict
result = predict(**payload)
File "/src/predict.py", line 167, in predict
result = model.transcribe(audio_align, batch_size=batch_size)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/whisperx/asr.py", line 249, in transcribe
for idx, out in enumerate(self.__call__(data(audio, vad_segments), batch_size=batch_size, num_workers=num_workers)):
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 124, in __next__
item = next(self.iterator)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 125, in __next__
processed = self.infer(item, **self.params)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/pipelines/base.py", line 990, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/whisperx/asr.py", line 162, in _forward
outputs = self.model.generate_segment_batched(model_inputs['inputs'], self.tokenizer, self.options)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/whisperx/asr.py", line 53, in generate_segment_batched
without_timestamps=options.without_timestamps,
AttributeError: type object 'TranscriptionOptions' has no attribute 'without_timestamps'

@Barabazs
Copy link
Collaborator

Barabazs commented Jan 9, 2025

Which version of whisperx are you running? Can you post pip list?

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