-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
writing comments, refactoring the codebase
- Loading branch information
Showing
15 changed files
with
113 additions
and
689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,3 @@ data/*.gz | |
**/__pycache__ | ||
/node_modules | ||
package-lock.json | ||
honkling-assistant/Mojibar-darwin-x64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
# hey_firefox | ||
This branch contains minimal code for the pocketsphinx/honlking based hey firefox detection demo. | ||
# HOWL | ||
|
||
Unlike the existing implementation of Honkling, this implementation functions as a web service on its own exploiting Node.js. | ||
In-browser keyword spotting for *hey firefox* | ||
|
||
A weights can be obtained from the python implementation [howl](https://github.com/castorini/howl) | ||
|
||
## Instructions | ||
* Fetch trained weights: `git submodule update --init --recursive` | ||
|
||
* [Install docker](https://docs.docker.com/engine/install/) and [enable GPU support](https://cnvrg.io/how-to-setup-docker-and-nvidia-docker-2-0-on-ubuntu-18-04/) | ||
|
||
* `docker build -t honkling .` | ||
* `docker build -t howl .` | ||
|
||
## In-browser keyword spotting | ||
|
||
To see the working demo, simply run | ||
|
||
* `nvidia-docker run -it -p 8000:8000 -v $(pwd):/app/src/ -v /data/kws/mozilla_processed:/data honkling` (use `docker` instead of `nvidia-docker` if GPU is missing) | ||
``` | ||
docker run -it -p 8000:8000 -v $(pwd):/app/src/ howl | ||
npm run dev | ||
``` | ||
|
||
* `npm run dev` for starting up a server | ||
The server is running at localhost:8000 | ||
|
||
* `npm run eval` for running the evaluation (meyda version not supported) | ||
## Evaluating the performance of JS implementation | ||
|
||
processed dataset for evaluation can be found from [howl](https://github.com/castorini/howl) | ||
|
||
Open a browser (Firefox recommended) and navigate to `localhost:8000` for honkling-based implementation | ||
``` | ||
nvidia-docker run -it -p 8000:8000 -v <path_to_dataset>:/data -v $(pwd):/app/src/ howl | ||
npm run eval | ||
``` | ||
|
||
PocketSphinx-based implementation is available at `localhost:8000/pocketsphinx`. For this implementation, user needs to click start manually. | ||
## Things to note | ||
* Eventhough we use Meyda.js fore feature extraction, it has been modified quite a bit that we recommend looking at our source code directly to understand what is going on with feature extraction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.