Replies: 1 comment 7 replies
-
not all options go through use |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a working python script using Whisper to do some voice transcribing. I am doing some refinements.
I want to use:
--threads THREADS number of threads used by torch for CPU inference; supercedes MKL_NUM_THREADS/OMP_NUM_THREADS
(default: 0)
To set the number of threads used to 4 when the script calls Whisper. I have tried all sorts of approaches and syntax trying to make this work with no luck. My last attempt was to set it up first and append it to the transcribe request:
%Initialize Whisper models
tiny_model = whisper.load_model('tiny')
base_model = whisper.load_model('base')
%Create a DecodingOptions object with the threads property set to 4
options = whisper.DecodingOptions(threads=4)
This does't work. I'm sure I'm just getting something simple wrong. Please help!
Beta Was this translation helpful? Give feedback.
All reactions