ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.52k stars 3.62k forks source link

Read write protected Memory Exception When Try to use Timestamp DTW. #2118

Open somenhlt1 opened 6 months ago

somenhlt1 commented 6 months ago

When turn on timestamp for DTW, this piece of code throws AccessViolationException when trying to copy mem.

image

After that, it crashed.

Any idea on how to fix this problem?

przemoc commented 6 months ago

Can you provide complete command-line (assuming you used main binary) or configuration provided to whisper.cpp?

I have not followed DTW development, but it feels like you need to provide correct preset matching model that you're using.

Examples:

main -m models/ggml-tiny.bin -f samples/jfk.wav -dtw tiny       # OK
main -m models/ggml-base.en.bin -f samples/jfk.wav -dtw base.en # OK
main -m models/ggml-tiny.bin -f samples/jfk.wav -dtw base.en    # FAIL
main -m models/ggml-tiny.bin -f samples/jfk.wav -dtw            # FAIL, no preset given