Skip to content

tests : add script to benchmark whisper.cpp on LibriSpeech corpus #2999

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

Merged
merged 3 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests : Simplify how to set up Python environment
Based on a feedback from Georgi Gerganov.

Instead of setting up a virtual environment in Makefile, let users
set up the Python environment. This is better since users may have
their own preferred workflow/toolkit.

Signed-off-by: Fujimoto Seiji <[email protected]>
  • Loading branch information
fujimotos committed Apr 4, 2025
commit 0c08b2e2f358fd13aa40b2d31bcc624e7b63bded
7 changes: 0 additions & 7 deletions tests/librispeech/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ eval:
clean:
$(MAKE) -f eval.mk clean

setup-venv:
python3 -m venv venv
./venv/bin/pip install -r requirements.txt

clean-venv:
rm -r venv

get-audio:
wget -c $(TAR_URL)
tar -xf test-clean.tar.gz
Expand Down
10 changes: 9 additions & 1 deletion tests/librispeech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ performance of whisper.cpp on LibriSpeech corpus.
3. Set up the environment to compute WER score.

```
$ make setup-venv
$ pip install -r requirements.txt
```

For example, if you use `virtualenv`, you can set up it as follows:

```
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
```

4. Run the benchmark test.
Expand Down
2 changes: 1 addition & 1 deletion tests/librispeech/eval.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PYTHON = ./venv/bin/python3
PYTHON = python

WHISPER_PREFIX = ../../
WHISPER_MODEL = tiny
Expand Down
Loading