Comments (8)
Yes, the transcription time depends on the audio file duration. Long files will take longer.
from faster-whisper.
Try running the model with 8-bit quantization:
model = WhisperModel(model_path, device="cuda", compute_type="int8")
from faster-whisper.
Hi,
The Whisper transcription loop already handles long files using a sliding 30-second window while keeping the context. So you don't need to do anything to transcribe long files.
from faster-whisper.
Thank you. So is it normal that the transcription time is considerably long for long files ?
from faster-whisper.
Sorry I closed and reopened the issue. I just have one last thing about the longer files.
If we use the "gpu" as a device, is there any way we can avoid OOM for these longer files ?
from faster-whisper.
What is your GPU and what model size are you running?
from faster-whisper.
It's a NVIDIA GeForce GTX 1070 Ti 8Go, I was running the large-v2 model on a 18min file. But even with 4min file I have OOM.
from faster-whisper.
Wow, just like that! it's a lot faster, and no OOM!!!
Thank you!
I will close the issue now for good :)
from faster-whisper.
Related Issues (20)
- 2 wavs file with same content generate different result HOT 4
- Problem with audio HOT 5
- How to run HOT 2
- CUDA 12 required? HOT 4
- faster-whisper docker example? HOT 2
- Word-level timestamps are off by some multiplier HOT 1
- Does it support converting to ONNX format models?
- question: client sdk HOT 1
- RuntimeError: CUDA failed with error CUDA driver version is insufficient for CUDA runtime version HOT 2
- Whisper-live taking same time on CPU and GPU to transcribe an audio HOT 4
- is it possible for customize VAD model path?
- Are timestamp tokens used in previous text?
- How do I get both transcript and translated output from single process? HOT 4
- mkl_malloc: failed to allocate memory HOT 1
- Can we modify vocabulary
- change subtitles lenght per line HOT 1
- Allow loading model from memory HOT 6
- Long video processing failure without error HOT 2
- transcribe can't find files outside current script working directory HOT 4
- no kernel image is available for execution on the device HOT 4
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 faster-whisper.