Transformers
English
Sound Classification
Interpretable Sound Classification
PIQ
Posthoc Interpretation
Posthoc Interpretation via Quantization
CNN14
Instructions to use speechbrain/PIQ-ESC50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use speechbrain/PIQ-ESC50 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("speechbrain/PIQ-ESC50", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
| 46 |
### Perform Interpretable Classification on your own file
|
| 47 |
|
| 48 |
```python
|
| 49 |
-
from speechbrain.
|
| 50 |
import torchaudio
|
| 51 |
|
| 52 |
model = PIQAudioInterpreter.from_hparams(source="speechbrain/PIQ-ESC50", savedir='pretrained_models/PIQ-ESC50')
|
|
|
|
| 46 |
### Perform Interpretable Classification on your own file
|
| 47 |
|
| 48 |
```python
|
| 49 |
+
from speechbrain.inference.interpretability import PIQAudioInterpreter
|
| 50 |
import torchaudio
|
| 51 |
|
| 52 |
model = PIQAudioInterpreter.from_hparams(source="speechbrain/PIQ-ESC50", savedir='pretrained_models/PIQ-ESC50')
|