Closed titipata closed 1 year ago
fixed by #1
For the new code, don't use return_timestamp=True
.
@titipata sorry how to return timestamps therefore?
I'm doing
predicted_ids = model.generate(input_features,
max_length=model.config.max_target_positions,
num_beams=5,
length_penalty=1.0,
do_sample=do_sample,
temperature=temperature,
return_timestamps=return_timestamps,
early_stopping=early_stopping)
# Decode the predicted IDs to text and append to results
transcription_chunk = processor.batch_decode(predicted_ids,
task=task,
skip_special_tokens=skip_special_tokens,
return_timestamps=return_timestamps)[0]
transcriptions.append(transcription_chunk)
but it does not seems to work, Transformers version was 4.41.2
@loretoparisi, I suggest combining VAD with our model instead. Using the model with a returned timestamp
does not work well and might return the wrong timestamps.
Adding
return_timestamps=True
topipe
e.g.Currently
return_timestamps
does not work. Let's explore the minor hacks to get pipeline to return timestamps. See this issue.Error: