Comments (5)
cc @sanchit-gandhi @ylacombe @kamilakesbi
from transformers.
Hey @rizwanishaq, you can simply add the no_speech_threshold
argument to the generate method:
outputs = model.generate(
input_features, output_scores=True, return_dict_in_generate=True, max_new_tokens=128, no_speech_threshold=0.2
)
Let me know if that works!
from transformers.
Hey @ylacombe I get this warning "Audio input consists of only 3000. Short-form transcription is activated.no_speech_threshold is set to 0.3, but will be ignored."
from transformers.
Then it's related to a shortcoming of our Whisper implementation that we hope to fix soon: we're not applying some of the features used for long-form generation to short audios.
We should be resolving this issue quite soon, I'll keep you up-to-date
from transformers.
This is a duplicate of #29595, I'll close this issue, let's talk in #29595 if you have further questions!
from transformers.
Related Issues (20)
- OverflowError: out of range integral type conversion attempted HOT 4
- TypeError: Cannot convert [array([322., 1.])] to EagerTensor of dtype int64
- Hey @JohnHerry, I'm not sure I understand what's the issue. Could you provide a code sample of what seems to be limiting you?
- BitsAndBytesConfig missing a validation
- Understanding loss in Training LLM HOT 2
- Request for Static Cache Support for XLA Compiler in Transformers
- Inconsistency in logit values between generation and direct model prediction HOT 6
- Missing description/documentation about quantization_config
- Slow tokenizer-loading when many tokens (~17k) are added by a user. HOT 2
- SAM-HQ implementation in transformers HOT 2
- Add siglip flashattention support? HOT 4
- Unable to load t5-small tokenizer saved with latest packages in older versions
- Adding Special Tokens to GPT2 doesn't have any effect HOT 1
- TypeError: 'NoneType' object cannot be interpreted as an integer HOT 5
- AttributeError: 'LlamaForCausalLM' object has no attribute '_setup_cache' HOT 2
- Conversation pipeline example doesn't work HOT 6
- Finetuning OPT models with 8bit and LoRA on QA tasks leads to NAN weight in `model.qa_outputs` HOT 4
- LLaVA-NeXT-Video support HOT 4
- transformers 4.41.2 breaks paligemma inference HOT 4
- ModuleNotFoundError: No module named 'distutils' in Python 3.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers.