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

Faster Whisper sometimes stops running suddenly #620

Open
asusdisciple opened this issue Dec 15, 2023 · 8 comments
Open

Faster Whisper sometimes stops running suddenly #620

asusdisciple opened this issue Dec 15, 2023 · 8 comments

Comments

@asusdisciple
Copy link

asusdisciple commented Dec 15, 2023

So I have large quantity of short 10-60 seconds audio files. I try to transcribe them with faster whisper in a loop. But sometimes whisper just stops/freezes all of a sudden. I use debug mode but there is no error message, just the last info message that it started processing the file. If I repeat the run it sometimes fails on the same file, sometimes it goes a bit further and fails at another file. I looked into the audio files and they seem to work just fine in any media player. I call faster whisper (large-v1) like this:

res = []
        for p in audiopath:  # filepaths
            segments, info = model.transcribe(p,
                                           beam_size=5
                                           task="transcribe",
                                           without_timestamps=True,
                                           temperature=[0], # temp 0 to make benchmark fair
                                           language=lang
                                           )
            logging.debug("Detected language '%s' with probability %f" % (info.language, info.language_probability))
            segments = list(segments)
            res.append("".join([i[4] for i in segments]))  #only append text to the result list
@Purfview
Copy link
Contributor

Sometimes it stops without error when it's actually "out of memory".
How much VRAM there is in your GPU?

@sngazm
Copy link

sngazm commented Dec 16, 2023

I am experiencing the same problem. If you are using Windows, it may be related to this issue.
#71

This issue does not provide a solution, but it does provide some workarounds.

@asusdisciple
Copy link
Author

Not really, I use Ubuntu with an A100 and 80GB of RAM

@fmorett
Copy link

fmorett commented Jan 2, 2024

I experience the same issue with a T4 and 16GB of Memory. Suddenly stops and says start processing but them hangs.

It does not matter which files I use (have videos with different lengths) multiple container running faster whisper stop randomly.

@alexivaner
Copy link

me too facing the same problem

@llurk
Copy link

llurk commented May 9, 2024

Has anyone encountered this issue and fixed it?

@fmorett
Copy link

fmorett commented May 9, 2024

Yes I have fixed it by checking every video via ffprobe and check if I get a duration. Basically we ignore all videos which would produce an error in ffmpeg and since then our service is super stable.

@llurk
Copy link

llurk commented Jun 7, 2024

I found the simplest way to fix this issue is to clear the CMOS or reset the BIOS. I'm not entirely sure why this works, but recently I messed with the BIOS settings and my PC couldn't boot. After resetting the CMOS, the faster whisper error got fixed too.

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

6 participants