We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would be great to have a simple example on how to upload and run prediction on a wav file as part of ESC50: Environmental Sound Classification.ipynb
something like this: learn_inf = load_learner('model name', cpu=True) audio = AudioTensor.create('file name') with out_pl_env: display(Audio(content)) pred,pred_idx,probs = learn_inf.predict(audio) lbl_pred_env.value = f'Prediction: {pred}; Probability: {probs[pred_idx]:.04f}'
same example as in the fastai documentation, only adapted for audio use case
The text was updated successfully, but these errors were encountered:
Feel free to create a pr for this @emma3826
Sorry, something went wrong.
No branches or pull requests
would be great to have a simple example on how to upload and run prediction on a wav file as part of ESC50: Environmental Sound Classification.ipynb
something like this:
learn_inf = load_learner('model name', cpu=True)
audio = AudioTensor.create('file name')
with out_pl_env: display(Audio(content))
pred,pred_idx,probs = learn_inf.predict(audio)
lbl_pred_env.value = f'Prediction: {pred}; Probability: {probs[pred_idx]:.04f}'
same example as in the fastai documentation, only adapted for audio use case
The text was updated successfully, but these errors were encountered: