Skip to content

Commit

Permalink
files : rename ./extra to ./scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Apr 9, 2024
1 parent 5275074 commit 52ccd4a
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,10 @@ https://user-images.githubusercontent.com/1991296/199337538-b7b0c7a3-2753-4a88-a

## Video comparison of different models

Use the [extra/bench-wts.sh](https://github.com/ggerganov/whisper.cpp/blob/master/extra/bench-wts.sh) script to generate a video in the following format:
Use the [scripts/bench-wts.sh](https://github.com/ggerganov/whisper.cpp/blob/master/scripts/bench-wts.sh) script to generate a video in the following format:

```bash
./extra/bench-wts.sh samples/jfk.wav
./scripts/bench-wts.sh samples/jfk.wav
ffplay ./samples/jfk.wav.all.mp4
```

Expand All @@ -768,7 +768,7 @@ Additionally a script to run whisper.cpp with different models and audio files i
You can run it with the following command, by default it will run against any standard model in the models folder.

```bash
python3 extra/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2
python3 scripts/bench.py -f samples/jfk.wav -t 2,4,8 -p 1,2
```

It is written in python with the intention of being easy to modify and extend for your benchmarking use case.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion extra/deploy-wasm.sh → scripts/deploy-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Run from the build directory:
#
# cd build-em
# ../extra/deploy-wasm.sh
# ../scripts/deploy-wasm.sh
#

# check if emcmake is available
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions extra/sync-ggml-am.sh → scripts/sync-ggml-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Usage:
#
# $ cd /path/to/whisper.cpp
# $ ./extra/sync-ggml-am.sh -skip hash0,hash1,hash2...
# $ ./scripts/sync-ggml-am.sh -skip hash0,hash1,hash2...
#

set -e
Expand All @@ -21,7 +21,7 @@ if [ ! -d $SRC_GGML ]; then
exit 1
fi

lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
lc=$(cat $SRC_WHISPER/scripts/sync-ggml.last)
echo "Syncing ggml changes since commit $lc"

to_skip=""
Expand Down Expand Up @@ -182,7 +182,7 @@ fi

# update last commit
cd $SRC_GGML
git log -1 --format=%H > $SRC_WHISPER/extra/sync-ggml.last
git log -1 --format=%H > $SRC_WHISPER/scripts/sync-ggml.last

echo "Done"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 52ccd4a

Please sign in to comment.