mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-08 03:44:46 +00:00
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:
parent
de329b7816
commit
0c08b2e2f3
@ -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
|
||||
|
@ -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.
|
||||
|
@ -1,4 +1,4 @@
|
||||
PYTHON = ./venv/bin/python3
|
||||
PYTHON = python
|
||||
|
||||
WHISPER_PREFIX = ../../
|
||||
WHISPER_MODEL = tiny
|
||||
|
Loading…
x
Reference in New Issue
Block a user