is there the inference.py?
Closed this issue · 4 comments
Hi @huacilang. No currently there is no separate inference.py. However, you can take a look at the colab tutorial -- particularly, the Using Pre-trained Models for Inference section, which shows how to use a pretrained model to get predictions for random clips in the test set.
I will also open a PR soon, which will add two files:
inference.py
- Will run inference on short ~1s audio clips like the ones in Speech Commands Datasetinference_window.py
- Will run inference on longer audio clips (e.g. 10s) by moving a "sliding window" across the audio array.
ho ho,thanks ,Really looking forward to
Hi, sorry it took a while. While the inference-script branch was ready a long time back, didn't have time to update the tutorial notebook and merge the PR in the past couple of weeks!
The main branch now has inference.py
and window_inference.py
.
You can see an actual example of using them in the Using Pre-trained Models for Inference section of the updated colab tutorial.
ok ,I see , already very soon.
thanks a lot