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 <fujimoto@ceptord.net>
This commit is contained in:
Fujimoto Seiji 2025-04-04 07:30:22 +00:00
parent de329b7816
commit 0c08b2e2f3
3 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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.

View File

@ -1,4 +1,4 @@
PYTHON = ./venv/bin/python3
PYTHON = python
WHISPER_PREFIX = ../../
WHISPER_MODEL = tiny